From cf693cf786966d32b4a7502799e175adb97bdd4d Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 2 Mar 2023 21:18:45 -0800 Subject: [PATCH] clean up --- selfdrive/ui/qt/onroad.cc | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index d1f1443455..5c52305c25 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -575,23 +575,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) { bg.setColorAt(lin_grad_point, QColor::fromHslF(end_hue / 360., saturation, lightness, alpha)); } -// qDebug() << right_points; - -// const auto &acceleration = sm["modelV2"].getModelV2().getAcceleration(); -// float acceleration_future = 0; -// if (acceleration.getZ().size() > 16) { -// acceleration_future = acceleration.getX()[16]; // 2.5 seconds -// } -// start_hue = 60; -// // speed up: 120, slow down: 0 -// end_hue = fmax(fmin(start_hue + acceleration_future * 45, 148), 0); -// -// // FIXME: painter.drawPolygon can be slow if hue is not rounded -// end_hue = int(end_hue * 100 + 0.5) / 100; -// -// bg.setColorAt(0.0, QColor::fromHslF(start_hue / 360., 0.97, 0.56, 0.4)); -// bg.setColorAt(0.5, QColor::fromHslF(end_hue / 360., 1.0, 0.68, 0.35)); -// bg.setColorAt(1.0, QColor::fromHslF(end_hue / 360., 1.0, 0.68, 0.0)); + } else { bg.setColorAt(0.0, QColor::fromHslF(148 / 360., 0.94, 0.51, 0.4)); bg.setColorAt(0.5, QColor::fromHslF(112 / 360., 1.0, 0.68, 0.35));