From 21a8f9e9ba110d8cc0f57efae9166b559605620c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 10 Oct 2024 21:07:03 -0700 Subject: [PATCH] experimental_model typo --- selfdrive/ui/qt/onroad/model.cc | 4 ++-- selfdrive/ui/qt/onroad/model.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/ui/qt/onroad/model.cc b/selfdrive/ui/qt/onroad/model.cc index 9a2c989b26c919..c709145980cd0d 100644 --- a/selfdrive/ui/qt/onroad/model.cc +++ b/selfdrive/ui/qt/onroad/model.cc @@ -25,7 +25,7 @@ void ModelRenderer::draw(QPainter &painter, const QRect &surface_rect) { } clip_region = surface_rect.adjusted(-CLIP_MARGIN, -CLIP_MARGIN, CLIP_MARGIN, CLIP_MARGIN); - experimental_model = sm["selfdriveState"].getSelfdriveState().getExperimentalMode(); + experimental_mode = sm["selfdriveState"].getSelfdriveState().getExperimentalMode(); painter.save(); @@ -107,7 +107,7 @@ void ModelRenderer::drawLaneLines(QPainter &painter) { void ModelRenderer::drawPath(QPainter &painter, const cereal::ModelDataV2::Reader &model, int height) { QLinearGradient bg(0, height, 0, 0); - if (experimental_model) { + if (experimental_mode) { // The first half of track_vertices are the points for the right side of the path const auto &acceleration = model.getAcceleration().getX(); const int max_len = std::min(track_vertices.length() / 2, acceleration.size()); diff --git a/selfdrive/ui/qt/onroad/model.h b/selfdrive/ui/qt/onroad/model.h index 358fce53f436c5..a0476d542ac986 100644 --- a/selfdrive/ui/qt/onroad/model.h +++ b/selfdrive/ui/qt/onroad/model.h @@ -22,7 +22,7 @@ class ModelRenderer { void drawPath(QPainter &painter, const cereal::ModelDataV2::Reader &model, int height); bool longitudinal_control = false; - bool experimental_model = false; + bool experimental_mode = false; float lane_line_probs[4] = {}; float road_edge_stds[2] = {}; QPolygonF track_vertices;