Controls - Conditional Experimental Mode - Turn Signal When Below Highway Speeds

Switch to 'Experimental Mode' when using turn signals below highway speeds to help assist with turns.
This commit is contained in:
FrogAi
2024-06-19 09:54:47 -07:00
parent 52f639e476
commit 67694623e3
@@ -28,6 +28,10 @@ class ConditionalExperimentalMode:
self.status_value = 7 if tracking_lead else 8
return True
if frogpilot_toggles.conditional_signal and v_ego <= CITY_SPEED_LIMIT and (carState.leftBlinker or carState.rightBlinker):
self.status_value = 9
return True
approaching_maneuver = modelData.navEnabled and (frogpilotNavigation.approachingIntersection or frogpilotNavigation.approachingTurn)
if frogpilot_toggles.conditional_navigation and approaching_maneuver and (frogpilot_toggles.conditional_navigation_lead or not tracking_lead):
self.status_value = 10 if frogpilotNavigation.approachingIntersection else 11