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

Commit

Permalink
Use L1CA ephes for L2CM
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasi Miettinen committed May 26, 2016
1 parent af5f931 commit 9d0d129
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ephemeris.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,10 @@ void ephemeris_unlock(void)
ephemeris_t *ephemeris_get(gnss_signal_t sid)
{
assert(sid_supported(sid));

/* L2CM uses L1CA ephes */
if (CODE_GPS_L2CM == sid.code)
sid.code = CODE_GPS_L1CA;

return &es[sid_to_global_index(sid)];
}

0 comments on commit 9d0d129

Please sign in to comment.