experimental_model typo

This commit is contained in:
Shane Smiskol
2024-10-10 21:07:03 -07:00
parent f11e5492f8
commit 21a8f9e9ba
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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());
+1 -1
View File
@@ -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;