mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_MSP: rename AP_AHRS::get_position to get_location
This commit is contained in:
parent
fcd8d1b5eb
commit
1c63aa1e4d
@ -180,7 +180,7 @@ void AP_MSP_Telem_Backend::update_home_pos(home_state_t &home_state)
|
|||||||
WITH_SEMAPHORE(_ahrs.get_semaphore());
|
WITH_SEMAPHORE(_ahrs.get_semaphore());
|
||||||
Location loc;
|
Location loc;
|
||||||
float alt;
|
float alt;
|
||||||
if (_ahrs.get_position(loc) && _ahrs.home_is_set()) {
|
if (_ahrs.get_location(loc) && _ahrs.home_is_set()) {
|
||||||
const Location &home_loc = _ahrs.get_home();
|
const Location &home_loc = _ahrs.get_home();
|
||||||
home_state.home_distance_m = home_loc.get_distance(loc);
|
home_state.home_distance_m = home_loc.get_distance(loc);
|
||||||
home_state.home_bearing_cd = loc.get_bearing_to(home_loc);
|
home_state.home_bearing_cd = loc.get_bearing_to(home_loc);
|
||||||
|
Loading…
Reference in New Issue
Block a user