[paramsd] Prevent low speed drifting (#26360)

* lower active speed for paramsd observations

* update refs
pull/26361/head
Vivek Aithal 3 years ago committed by GitHub
parent aebb08e105
commit 81f6ebebaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/locationd/paramsd.py
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -92,7 +92,7 @@ class ParamsLearner:
self.speed = msg.vEgo self.speed = msg.vEgo
in_linear_region = abs(self.steering_angle) < 45 or not self.steering_pressed in_linear_region = abs(self.steering_angle) < 45 or not self.steering_pressed
self.active = self.speed > 5 and in_linear_region self.active = self.speed > 1 and in_linear_region
if self.active: if self.active:
self.kf.predict_and_observe(t, ObservationKind.STEER_ANGLE, np.array([[math.radians(msg.steeringAngleDeg)]])) self.kf.predict_and_observe(t, ObservationKind.STEER_ANGLE, np.array([[math.radians(msg.steeringAngleDeg)]]))

@ -1 +1 @@
6abe3ec1ee19710bdd89ce2882b9503d4aff8e7f 2ba23c5d1c4e0c34295d38f31ed35e3482608b16
Loading…
Cancel
Save