mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 18:53:55 +08:00
LatControlTorque: log desired/actual lateral accel (#24406)
* log torque lateral accel * bump cereal * update refs Co-authored-by: Shane Smiskol <shane@smiskol.com>
This commit is contained in:
2
cereal
2
cereal
Submodule cereal updated: 3f8210d1fd...5935572cee
@@ -73,6 +73,8 @@ class LatControlTorque(LatControl):
|
||||
pid_log.f = self.pid.f
|
||||
pid_log.output = -output_torque
|
||||
pid_log.saturated = self._check_saturation(self.steer_max - abs(output_torque) < 1e-3, CS)
|
||||
pid_log.actualLateralAccel = actual_lateral_accel
|
||||
pid_log.desiredLateralAccel = desired_lateral_accel
|
||||
|
||||
# TODO left is positive in this convention
|
||||
return -output_torque, 0.0, pid_log
|
||||
|
||||
@@ -1 +1 @@
|
||||
7f1f4bd17965cc703b824ffb1870313bee93e2ec
|
||||
70d79fbcc2b9ab0af867a7d6f138b58bcaaa3aa8
|
||||
Reference in New Issue
Block a user