diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2009-12-28 14:51:08 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-01-07 10:22:24 +0100 |
commit | ccea43902808717c81facef188872abebae0a290 (patch) | |
tree | cc901c24cf646f261191907a507b9772dbc7848d /rrlp-ephemeris | |
parent | c74f953fb90b7cb66714e143381113fb8e9c07f3 (diff) |
rrlp-ephemeris: Fill ref pos with UBX NAV_POSLLH messages
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'rrlp-ephemeris')
-rw-r--r-- | rrlp-ephemeris/ubx-parse.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rrlp-ephemeris/ubx-parse.c b/rrlp-ephemeris/ubx-parse.c index cb8c22e83..60bc05763 100644 --- a/rrlp-ephemeris/ubx-parse.c +++ b/rrlp-ephemeris/ubx-parse.c @@ -69,7 +69,11 @@ _ubx_msg_parse_nav_posllh(struct ubx_hdr *hdr, void *pl, int pl_len, void *ud) //printf("[.] NAV_POSLLH\n"); - // FIXME: Extract info for "Reference Position" + gps->fields |= GPS_FIELD_REFPOS; + + gps->ref_pos.latitude = (double)(nav_posllh->lat) * 1e-7; + gps->ref_pos.longitude = (double)(nav_posllh->lon) * 1e-7; + gps->ref_pos.altitude = (double)(nav_posllh->height) * 1e-3; } static void |