experimental_model typo

pull/33765/head
Shane Smiskol 7 months ago
parent f11e5492f8
commit 21a8f9e9ba
  1. 4
      selfdrive/ui/qt/onroad/model.cc
  2. 2
      selfdrive/ui/qt/onroad/model.h

@ -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<int>(track_vertices.length() / 2, acceleration.size());

@ -22,7 +22,7 @@ private:
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;

Loading…
Cancel
Save