|
|
|
@ -127,7 +127,18 @@ class CarController: |
|
|
|
|
def update(self, CC, CS): |
|
|
|
|
actuators = CC.actuators |
|
|
|
|
hud_control = CC.hudControl |
|
|
|
|
|
|
|
|
|
if self.CP.carFingerprint in HONDA_BOSCH_RADARLESS: |
|
|
|
|
stopping = actuators.longControlState == LongCtrlState.stopping |
|
|
|
|
if CC.longActive and stopping: |
|
|
|
|
hud_v_cruise = 252 |
|
|
|
|
else: |
|
|
|
|
if CS.is_metric: |
|
|
|
|
hud_v_cruise = hud_control.setSpeed * CV.MS_TO_KPH if hud_control.speedVisible else 255 |
|
|
|
|
else: |
|
|
|
|
hud_v_cruise = hud_control.setSpeed * CV.MS_TO_MPH if hud_control.speedVisible else 255 |
|
|
|
|
else: |
|
|
|
|
hud_v_cruise = hud_control.setSpeed * CV.MS_TO_MPH if hud_control.speedVisible else 255 |
|
|
|
|
pcm_cancel_cmd = CC.cruiseControl.cancel |
|
|
|
|
|
|
|
|
|
if CC.longActive: |
|
|
|
|