From 024e1a77e253c51887ba487aaa2078abbc226a64 Mon Sep 17 00:00:00 2001 From: James <91348155+FrogAi@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:00:00 -0700 Subject: [PATCH] Offset Set Speed Co-Authored-By: Tim Wilson <7284371+twilsonco@users.noreply.github.com> --- selfdrive/car/cruise.py | 4 ++++ 1 file changed, 4 insertions(+) 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):