From 5208dd65aa6993bc4a771eae43f79a7c4c164de0 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 3 Oct 2025 00:16:49 -0500 Subject: [PATCH] Reapply "Torque Panda" This reverts commit d0d28e661b07a3980720207b89e3a1f813a2b1d4. --- panda/board/safety/safety_gm.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/panda/board/safety/safety_gm.h b/panda/board/safety/safety_gm.h index 8c51bdf51..02e844c2d 100644 --- a/panda/board/safety/safety_gm.h +++ b/panda/board/safety/safety_gm.h @@ -16,13 +16,6 @@ const LongitudinalLimits GM_ASCM_LONG_LIMITS = { .max_brake = 400, }; -const LongitudinalLimits GM_ASCM_LONG_LIMITS_SPORT = { - .max_gas = 8191, - .min_gas = 5500, - .inactive_gas = 5500, - .max_brake = 400, -}; - const LongitudinalLimits GM_CAM_LONG_LIMITS = { .max_gas = 7496, .min_gas = 5610, @@ -30,13 +23,6 @@ const LongitudinalLimits GM_CAM_LONG_LIMITS = { .max_brake = 400, }; -const LongitudinalLimits GM_CAM_LONG_LIMITS_SPORT = { - .max_gas = 8848, - .min_gas = 5610, - .inactive_gas = 5650, - .max_brake = 400, -}; - const LongitudinalLimits *gm_long_limits; const int GM_STANDSTILL_THRSLD = 10; // 0.311kph @@ -338,8 +324,6 @@ static int gm_fwd_hook(int bus_num, int addr) { } static safety_config gm_init(uint16_t param) { - sport_mode = alternative_experience & ALT_EXP_RAISE_LONGITUDINAL_LIMITS_TO_ISO_MAX; - if GET_FLAG(param, GM_PARAM_HW_CAM) { gm_hw = GM_CAM; } else if GET_FLAG(param, GM_PARAM_HW_SDGM) { @@ -351,17 +335,9 @@ static safety_config gm_init(uint16_t param) { gm_force_ascm = GET_FLAG(param, GM_PARAM_HW_ASCM_LONG); if (gm_hw == GM_ASCM || gm_force_ascm) { - if (sport_mode) { - gm_long_limits = &GM_ASCM_LONG_LIMITS_SPORT; - } else { gm_long_limits = &GM_ASCM_LONG_LIMITS; - } } else if ((gm_hw == GM_CAM) || (gm_hw == GM_SDGM)) { - if (sport_mode) { - gm_long_limits = &GM_CAM_LONG_LIMITS_SPORT; - } else { gm_long_limits = &GM_CAM_LONG_LIMITS; - } } else { }