Skip to content

Commit 2308224

Browse files
ntegan1sshane
authored andcommitted
LatControlTorque: log desired/actual lateral accel (commaai#24406)
* log torque lateral accel * bump cereal * update refs Co-authored-by: Shane Smiskol <[email protected]>
1 parent c3f3566 commit 2308224

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

selfdrive/controls/lib/latcontrol_torque.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def update(self, active, CS, VM, params, last_actuators, desired_curvature, desi
7979
pid_log.f = self.pid.f
8080
pid_log.output = -output_torque
8181
pid_log.saturated = self._check_saturation(self.steer_max - abs(output_torque) < 1e-3, CS)
82+
pid_log.actualLateralAccel = actual_lateral_accel
83+
pid_log.desiredLateralAccel = desired_lateral_accel
8284

8385
# TODO left is positive in this convention
8486
return -output_torque, 0.0, pid_log

0 commit comments

Comments
 (0)