diff options
author | Gary E. Miller <gem@rellim.com> | 2011-01-04 19:22:00 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2011-01-04 19:22:00 -0800 |
commit | 866b24778872a4f1e33789905bf50d1b83fa68d0 (patch) | |
tree | 8703e5ffb053f22d64b1e0692b7a1e0c1a427746 /subframe.c | |
parent | 7729b40e6f0aec4d1e4d18999c60734119aa895d (diff) | |
download | gpsd-866b24778872a4f1e33789905bf50d1b83fa68d0.tar.gz |
Add TOW17 to JSON SUBFRAME
Diffstat (limited to 'subframe.c')
-rw-r--r-- | subframe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -103,7 +103,7 @@ static void subframe_almanac(unsigned int tSVID, uint32_t words[], almp->omega = ( words[7] & 0xFFFFFF); almp->omega = uint2int(almp->omega, 24); almp->d_omega = pow(2.0, -23) * almp->omega; - almp->M0 = ( words[8] & 0xFFFFFF); + almp->M0 = ( words[8] & 0x00FFFFFF); almp->M0 = uint2int(almp->M0, 24); almp->d_M0 = pow(2.0,-23) * almp->M0; almp->af1 = ((words[9] >> 5) & 0x0007FF); |