rrlp-ephemeris: Fill ref pos with UBX NAV_POSLLH messages

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2009-12-28 14:51:08 +01:00 committed by Harald Welte
parent 8dbd19e6d8
commit 9819d8baf2
1 changed files with 5 additions and 1 deletions

View File

@ -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