diff --git a/rtcm.cc b/rtcm.cc index c2eee83..3996682 100644 --- a/rtcm.cc +++ b/rtcm.cc @@ -29,7 +29,7 @@ void RTCMMessage::parse(const std::string& str) } int sats = gbu(62, 6); - sow = gbu(12, 20); + sow = gbu(12, 20); // this is DF385 udi = gbu(32, 4); mmi = gbu(36, 1); reference = gbu(37,1); @@ -45,16 +45,16 @@ void RTCMMessage::parse(const std::string& str) EphemerisDelta ed; int off = 68+stride*n; - ed.radial = gbs(off+ iodlen + 6, 22) * 0.1; + ed.radial = gbs(off+ iodlen + 6, 22) * 0.1; // we store this in millimeters ed.along = gbs(off+ iodlen+ 28, 20) * 0.4; ed.cross = gbs(off+ iodlen+48, 20) * 0.4; - - ed.dradial = gbs(off + iodlen+ 68, 21) * 0.001; + ed.dradial = gbs(off + iodlen+ 68, 21) * 0.001; // we store this in mm/s ed.dalong = gbs(off + iodlen + 89, 19) * 0.004; ed.dcross = gbs(off + iodlen +108, 19) * 0.004; ed.iod = gbu(off +6, iodlen); ed.sow = sow; + ed.udi = udi; if(type == 1057) { ed.id.gnss = 0; ed.id.sigid = 0; @@ -83,9 +83,11 @@ void RTCMMessage::parse(const std::string& str) // cout <<" sow "<< sow <<" sats "< d_ephs;