leapmotor: describe the 56-step ramp boost as tested

This commit is contained in:
ryan
2026-11-15 17:28:15 +01:00
parent 81e08eb4f8
commit 541af7124d
2 changed files with 4 additions and 3 deletions
@@ -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
+2 -2
View File
@@ -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