mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-15 02:22:07 +08:00
Adjust low-speed scaling for lateral control angle
Refined the low-speed scaling parameters by modifying speed breakpoints and factors. This improves handling at lower speeds for smoother and more predictable behavior.
This commit is contained in:
@@ -7,8 +7,8 @@ from openpilot.selfdrive.controls.lib.latcontrol import LatControl
|
||||
STEER_ANGLE_SATURATION_THRESHOLD = 2.5 # Degrees
|
||||
|
||||
# Define a speed-based scaling factor similar to low_speed_factor
|
||||
LOW_SPEED_X = [0, 3, 6, 10, 20, 30] # Speed breakpoints
|
||||
LOW_SPEED_Y = [0, 0.33, 0.67, 0.77, 0.91, 1.0] # Factor reducing influence at low speeds
|
||||
LOW_SPEED_X = [0, 3, 6, 10] # Speed breakpoints
|
||||
LOW_SPEED_Y = [0, 0.2, 0.45, 1.0] # Factor reducing influence at low speeds
|
||||
|
||||
class LatControlAngle(LatControl):
|
||||
def __init__(self, CP, CP_SP, CI):
|
||||
|
||||
Reference in New Issue
Block a user