Skip to content

Commit

Permalink
don't touch roll_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
cydia2020 committed Nov 10, 2023
1 parent 696ca81 commit 2ddb3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/locationd/paramsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def handle_log(self, t, which, msg):
(math.cos(llk_pitch) * math.cos(llk_roll) * llk_roll_std)**2
+ (math.sin(llk_pitch) * math.sin(llk_roll) * llk_pitch_std)**2
)**0.5
roll_valid = msg.calibratedOrientationNED.valid and ROLL_MIN < localizer_roll < ROLL_MAX
roll_valid = orientationNED.valid and ROLL_MIN < localizer_roll < ROLL_MAX
if roll_valid:
roll = localizer_roll
# Experimentally found multiplier of 2 to be best trade-off between stability and accuracy or similar?
Expand Down

0 comments on commit 2ddb3b8

Please sign in to comment.