mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-28 10:23:41 +08:00
fixed de2e display logic
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user