Acceleration path

Added toggle to always show the vehicle's acceleration/deceleration via the onroad UI path.
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 6c946fc97a
commit f01d5fb25a
6 changed files with 6 additions and 2 deletions

View File

@@ -501,7 +501,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
// paint path
QLinearGradient bg(0, height(), 0, 0);
if (sm["controlsState"].getControlsState().getExperimentalMode()) {
if (sm["controlsState"].getControlsState().getExperimentalMode() || scene.acceleration_path) {
// The first half of track_vertices are the points for the right side of the path
// and the indices match the positions of accel from uiPlan
const auto &acceleration = sm["uiPlan"].getUiPlan().getAccel();