Merge "gps: fix nmea altitude for rpc"
This commit is contained in:
commit
87e24ecf53
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
|
@ -692,8 +692,8 @@ void LocApiRpcAdapter::reportPosition(const rpc_loc_parsed_position_s_type *loca
|
||||||
location.position_source = ULP_LOCATION_IS_FROM_GNSS;
|
location.position_source = ULP_LOCATION_IS_FROM_GNSS;
|
||||||
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