mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-08 15:12:10 +08:00
Pause steering with an active turn signal
This commit is contained in:
@@ -94,6 +94,7 @@ class FrogPilotPlanner:
|
||||
self.lateral_acceleration = v_ego**2 * sm["controlsState"].curvature
|
||||
|
||||
self.lateral_check = v_ego >= frogpilot_toggles.pause_lateral_below_speed
|
||||
self.lateral_check |= not (sm["carState"].leftBlinker or sm["carState"].rightBlinker) and frogpilot_toggles.pause_lateral_below_signal
|
||||
self.lateral_check |= sm["carState"].standstill
|
||||
self.lateral_check &= not sm["frogpilotCarState"].pauseLateral
|
||||
|
||||
|
||||
Reference in New Issue
Block a user