Offset Set Speed
Co-Authored-By: Tim Wilson <7284371+twilsonco@users.noreply.github.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user