Offset Set Speed

Co-Authored-By: Tim Wilson <7284371+twilsonco@users.noreply.github.com>
This commit is contained in:
James
2025-12-01 12:00:00 -07:00
parent a8122c8f05
commit 024e1a77e2
+4
View File
@@ -113,6 +113,10 @@ class VCruiseHelper:
self.v_cruise_kph += v_cruise_delta * CRUISE_INTERVAL_SIGN[button_type]
# FrogPilot variables
if long_press and frogpilot_toggles.set_speed_offset > 0:
self.v_cruise_kph += frogpilot_toggles.set_speed_offset
if button_type == ButtonType.decelCruise:
self.v_cruise_kph -= v_cruise_delta
# If set is pressed while overriding, clip cruise speed to minimum of vEgo
if CS.gasPressed and button_type in (ButtonType.decelCruise, ButtonType.setCruise):