fixed de2e display logic

This commit is contained in:
Rick Lan
2024-06-20 21:16:38 +08:00
parent 70afdf3703
commit c0335d4439
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -121,6 +121,8 @@ class Controls:
self.params.remove("ExperimentalLongitudinalEnabled")
if not self.CP.openpilotLongitudinalControl:
self.params.remove("ExperimentalMode")
# dp
self.params.remove("dp_long_de2e")
self.CS_prev = car.CarState.new_message()
self.AM = AlertManager()
+1 -1
View File
@@ -275,7 +275,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
#ifdef DP
if (rainbow_path->is_enabled()) {
rainbow_path->paint(bg);
} else if (sm["controlsState"].getControlsState().getExperimentalMode()) {
} else if (sm["longitudinalPlanExt"].getLongitudinalPlanExt().getDe2eIsBlended() || sm["controlsState"].getControlsState().getExperimentalMode()) {
#else
if (sm["controlsState"].getControlsState().getExperimentalMode()) {
#endif