Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Commit 679e9b0

Browse files
committed
Update almanac and ephemeris for QZSS
1 parent 432250e commit 679e9b0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/almanac.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static void gps_calc_sat_state_almanac(const almanac_t* alm_, double t, s16 week
105105
double ea = ma; /* Starting value for E. */
106106
double ea_old;
107107
double temp;
108+
// TODO: inclination offset for QZSS different from GPS
108109
double ecc = alm->ecc;
109110
u32 count = 0;
110111

@@ -144,6 +145,7 @@ static void gps_calc_sat_state_almanac(const almanac_t* alm_, double t, s16 week
144145

145146
/* Compute the satellite's position in Earth-Centered Earth-Fixed
146147
* coordinates. */
148+
// TODO: inclination offset for QZSS different from GPS
147149
pos[0] = x * cos(om) - y * cos(alm->inc) * sin(om);
148150
pos[1] = x * sin(om) + y * cos(alm->inc) * cos(om);
149151
pos[2] = y * sin(alm->inc);

src/ephemeris.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ void decode_ephemeris(u32 frame_words[3][8], ephemeris_t *e)
308308
e->healthy = !(frame_words[0][3-3] >> (30-17) & 1);
309309

310310
/* t_gd: Word 7, bits 17-24 */
311+
// TODO
311312
onebyte.u8 = frame_words[0][7-3] >> (30-24) & 0xFF;
312313
k->tgd = onebyte.s8 * pow(2,-31);
313314

0 commit comments

Comments
 (0)