Skip to content

Commit 2d3504f

Browse files
committed
also parse GPS iodc (clock)
1 parent 47540b9 commit 2d3504f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gps.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ int GPSState::parseGPSMessage(const std::vector<uint8_t>& cond, uint8_t* pageptr
3838
wn = 2048 + getbitu(&cond[0], 2*24, 10);
3939
ura = getbitu(&cond[0], 2*24+12, 4);
4040
gpshealth = getbitu(&cond[0], 2*24+16, 6);
41+
iodc = getbitu(&cond[0], 2*24 +22, 2) * 256;
42+
iodc += getbitu(&cond[0], 7*24, 8);
4143

4244
// cerr<<"GPS Week Number: "<< wn <<", URA: "<< (int)ura<<", health: "<<
4345
// (int)gpshealth <<endl;

gps.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ struct GPSState : GPSLikeEphemeris
134134
uint16_t wnLSF{0};
135135
uint8_t dn; // leap second day number
136136
// 1 2^-31 2^-43 2^-55 16 second
137+
int iodc;
137138
int ura;
138139

140+
139141
int gpsiod{-1};
140142

141143
int getIOD() const

0 commit comments

Comments
 (0)