mirror of
https://github.com/infiniteCable2/opendbc.git
synced 2026-04-06 14:03:52 +08:00
HONDA - fix alt_radar standstill lane blinking (#3261)
Include STEER_GLOBAL_MIN_SPEED in steering_available calc
This commit is contained in:
@@ -224,7 +224,7 @@ class CarController(CarControllerBase):
|
||||
can_sends.append(hondacan.create_acc_hud(self.packer, self.CAN.pt, self.CP, CC.enabled, pcm_speed, pcm_accel,
|
||||
hud_control, hud_v_cruise, CS.is_metric, CS.acc_hud))
|
||||
|
||||
steering_available = CS.out.cruiseState.available and CS.out.vEgo > self.CP.minSteerSpeed
|
||||
steering_available = CS.out.cruiseState.available and CS.out.vEgo > max(self.params.STEER_GLOBAL_MIN_SPEED, self.CP.minSteerSpeed)
|
||||
can_sends.extend(hondacan.create_lkas_hud(self.packer, self.CAN.lkas, self.CP, hud_control, CC.latActive,
|
||||
steering_available, alert_steer_required, CS.lkas_hud))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user