paramsd: nan checks are implicit now

pull/20826/head
Willem Melching 4 years ago
parent d6a575a860
commit b768729755
  1. 2
      selfdrive/locationd/paramsd.py

@ -38,8 +38,6 @@ class ParamsLearner:
yaw_rate_std = msg.angularVelocityCalibrated.std[2]
yaw_rate_valid = msg.angularVelocityCalibrated.valid
yaw_rate_valid = yaw_rate_valid and math.isfinite(yaw_rate)
yaw_rate_valid = yaw_rate_valid and math.isfinite(yaw_rate_std)
yaw_rate_valid = yaw_rate_valid and 0 < yaw_rate_std < 10 # rad/s
yaw_rate_valid = yaw_rate_valid and abs(yaw_rate) < 1 # rad/s

Loading…
Cancel
Save