pull/27391/head
Shane Smiskol 2 years ago committed by GitHub
parent 9e922ece69
commit 2c2cef7858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/ui/qt/onroad.cc

@ -540,7 +540,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
for (int i = 0; i < right_points.length(); i++) { for (int i = 0; i < right_points.length(); i++) {
const auto &acceleration = sm["uiPlan"].getUiPlan().getAccel(); const auto &acceleration = sm["uiPlan"].getUiPlan().getAccel();
float acceleration_future = 0; float acceleration_future = 0;
if (i > acceleration.size()) { if (i >= acceleration.size()) {
break; break;
} }
acceleration_future = acceleration[i]; acceleration_future = acceleration[i];

Loading…
Cancel
Save