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-07-03 22:19:27 -07:00
parent b287e50982
commit a61c124f54
@@ -36,6 +36,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