Use turn desires when below the minimum lane change speed
Added toggle to use turn desires when below the minimum lane change speed for more precise turns.
This commit is contained in:
@@ -340,6 +340,13 @@ class Controls:
|
||||
LaneChangeState.laneChangeFinishing):
|
||||
self.events.add(EventName.laneChange)
|
||||
|
||||
# Handle turning
|
||||
if not CS.standstill:
|
||||
if self.sm['lateralPlan'].desire == Desire.turnLeft:
|
||||
self.events.add(FrogPilotEventName.turningLeft)
|
||||
elif self.sm['lateralPlan'].desire == Desire.turnRight:
|
||||
self.events.add(FrogPilotEventName.turningRight)
|
||||
|
||||
for i, pandaState in enumerate(self.sm['pandaStates']):
|
||||
# All pandas must match the list of safetyConfigs, and if outside this list, must be silent or noOutput
|
||||
if i < len(self.CP.safetyConfigs):
|
||||
|
||||
Reference in New Issue
Block a user