This commit is contained in:
Your Name
2024-02-05 00:25:42 -06:00
parent b7cb5c8893
commit 425594dd0c
3 changed files with 10 additions and 8 deletions

View File

@@ -343,11 +343,11 @@ class Controls:
# 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)
# 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