diff --git a/opendbc_repo/opendbc/car/leapmotor/leapmotorcan.py b/opendbc_repo/opendbc/car/leapmotor/leapmotorcan.py index 32ee085b3a..0a6ec35577 100644 --- a/opendbc_repo/opendbc/car/leapmotor/leapmotorcan.py +++ b/opendbc_repo/opendbc/car/leapmotor/leapmotorcan.py @@ -67,10 +67,11 @@ LCC_RAMP_IDLE = 0x7801 LCC_RAMP_STEP = 254 LCC_RAMP_STEPS_MIN = 25 LCC_RAMP_STEPS_MAX = 46 -# TEST: how deep the low-speed boost (CarControllerParams.RAMP_BOOST_LAG) may take the ramp, past the deepest stock value. +# How deep the low-speed boost (CarControllerParams.RAMP_BOOST_LAG) may take the ramp, past the deepest stock value. # On route 270 all 7 steerSaturated episodes (25-41 km/h) had the ramp at 46 steps with the wheel 2-6 deg behind the # command. At 52 steps (route 273, 35 min engaged) the EPS used more torque, the wheel's mean lag in roundabouts fell # from 6-15 to about 4 deg, and nothing faulted. 56 is the deepest value whose top 4 bits stay 4, as at 42-46 steps. +# Since route 0000000a the boost reached 56 only while the wheel trailed a fast-turning command, with the EPS at 30-90. LCC_RAMP_STEPS_BOOST_MAX = 56 # Ramp-in speed below LCC_RAMP_STEPS_MIN: stock moves one step per frame (0.5 s to 25 steps), and 50-68% of the frames # where the wheel fell > 5 deg behind were in that ramp-in. Two steps per frame reaches 25 steps in 0.25 s; deeper than diff --git a/opendbc_repo/opendbc/car/leapmotor/values.py b/opendbc_repo/opendbc/car/leapmotor/values.py index 3a65404c47..342f5e6733 100644 --- a/opendbc_repo/opendbc/car/leapmotor/values.py +++ b/opendbc_repo/opendbc/car/leapmotor/values.py @@ -43,8 +43,8 @@ class CarControllerParams: # The stock ramp depth follows lateral acceleration, which stays small in sharp turns at low speed: there the wheel # fell > 5 deg behind with the EPS near its torque ceiling (25d, 260). While the wheel is RAMP_BOOST_LAG behind the # command below RAMP_BOOST_MAX_SPEED, the ramp goes one step deeper per frame (deepest stock value 46 steps, about - # +/-70 torque; TEST: up to LCC_RAMP_STEPS_BOOST_MAX), and back one step per frame once within RAMP_BOOST_CAUGHT_UP. Replayed on 3 drives: active - # 23-31% of the time below 30 km/h, 3-7% at 30-80 km/h. Not at speed, where such a lag was the driver's own nudge. + # +/-70 torque; up to LCC_RAMP_STEPS_BOOST_MAX), and back one step per frame once within RAMP_BOOST_CAUGHT_UP. + # Replayed on 3 drives: active 23-31% of the time below 30 km/h, 3-7% at 30-80 km/h. Not at speed, where such a lag was the driver's own nudge. RAMP_BOOST_LAG = 3. # deg RAMP_BOOST_CAUGHT_UP = 1.5 # deg RAMP_BOOST_MAX_SPEED = 60. # km/h