mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-30 19:33:42 +08:00
cleanup torque tuning config (#24951)
This commit is contained in:
@@ -22,16 +22,6 @@ from selfdrive.controls.lib.vehicle_model import ACCELERATION_DUE_TO_GRAVITY
|
||||
FRICTION_THRESHOLD = 0.2
|
||||
|
||||
|
||||
def set_torque_tune(tune, MAX_LAT_ACCEL=2.5, FRICTION=0.01, steering_angle_deadzone_deg=0.0):
|
||||
tune.init('torque')
|
||||
tune.torque.useSteeringAngle = True
|
||||
tune.torque.kp = 1.0 / MAX_LAT_ACCEL
|
||||
tune.torque.kf = 1.0 / MAX_LAT_ACCEL
|
||||
tune.torque.ki = 0.1 / MAX_LAT_ACCEL
|
||||
tune.torque.friction = FRICTION
|
||||
tune.torque.steeringAngleDeadzoneDeg = steering_angle_deadzone_deg
|
||||
|
||||
|
||||
class LatControlTorque(LatControl):
|
||||
def __init__(self, CP, CI):
|
||||
super().__init__(CP, CI)
|
||||
|
||||
Reference in New Issue
Block a user