Skip to content

Commit

Permalink
Fix GPS SVHealth bit fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrir-naru committed Mar 27, 2024
1 parent 4b8eebb commit 95c61b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gps_pvt/supl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def attach_lpp(msg)
}
eph.iodc = Integer(v[:iod].join, 2)
eph.iode = (eph.iodc & 0xFF)
eph.SV_health = Integer(v[:svHealth].join, 2)
eph.SV_health = Integer(v[:svHealth][0..5].join, 2)
eph.WN = t_gps.week
delta_sec = t_gps.seconds - eph.t_oe
if delta_sec > GPS::Time::Seconds_week / 2 then
Expand Down

0 comments on commit 95c61b4

Please sign in to comment.