diff --git a/selfdrive/car/cruise.py b/selfdrive/car/cruise.py index ccd4f3b3..b9c48480 100644 --- a/selfdrive/car/cruise.py +++ b/selfdrive/car/cruise.py @@ -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):