Green light alert

Added toggle to alert the user when a red light turns to green.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 7151cd1c56
commit 57ebaa1656
7 changed files with 26 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ class FrogPilotPlanner:
frogpilotLongitudinalPlan.conditionalExperimental = self.cem.experimental_mode
frogpilotLongitudinalPlan.distances = self.x_desired_trajectory.tolist()
frogpilotLongitudinalPlan.redLight = bool(self.cem.red_light_detected)
frogpilotLongitudinalPlan.safeObstacleDistance = mpc.safe_obstacle_distance
frogpilotLongitudinalPlan.stoppedEquivalenceFactor = mpc.stopped_equivalence_factor