gps: fix nmea altitude for rpc
Change-Id: Ifcbde28717178b76bde03d02d3f9ffa8dae114fd
This commit is contained in:
parent
7ac13574ff
commit
b7b14cb1c6
1 changed files with 2 additions and 2 deletions
4
loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp
Normal file → Executable file
4
loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp
Normal file → Executable file
|
@ -694,8 +694,8 @@ void LocApiRpcAdapter::reportPosition(const rpc_loc_parsed_position_s_type *loca
|
||||||
#endif
|
#endif
|
||||||
if (location_report_ptr->valid_mask & RPC_LOC_POS_VALID_ALTITUDE_WRT_MEAN_SEA_LEVEL)
|
if (location_report_ptr->valid_mask & RPC_LOC_POS_VALID_ALTITUDE_WRT_MEAN_SEA_LEVEL)
|
||||||
{
|
{
|
||||||
locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_MAG_DEV;
|
locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_ALTITUDE_MEAN_SEA_LEVEL;
|
||||||
locationExtended.magneticDeviation = location_report_ptr->altitude_wrt_mean_sea_level;
|
locationExtended.altitudeMeanSeaLevel = location_report_ptr->altitude_wrt_mean_sea_level;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location_report_ptr->valid_mask & RPC_LOC_POS_VALID_MAGNETIC_VARIATION )
|
if (location_report_ptr->valid_mask & RPC_LOC_POS_VALID_MAGNETIC_VARIATION )
|
||||||
|
|
Loading…
Reference in a new issue