mirror of https://github.com/ArduPilot/ardupilot
AP_NMEA_Output: rename AP_AHRS::get_position to get_location
This commit is contained in:
parent
1c63aa1e4d
commit
88b463947a
|
@ -95,9 +95,9 @@ void AP_NMEA_Output::update()
|
||||||
|
|
||||||
auto &ahrs = AP::ahrs();
|
auto &ahrs = AP::ahrs();
|
||||||
|
|
||||||
// get location (note: get_position from AHRS always returns true after having GPS position once)
|
// get location (note: get_location from AHRS always returns true after having GPS position once)
|
||||||
Location loc;
|
Location loc;
|
||||||
bool pos_valid = ahrs.get_position(loc);
|
bool pos_valid = ahrs.get_location(loc);
|
||||||
|
|
||||||
// format latitude
|
// format latitude
|
||||||
char lat_string[13];
|
char lat_string[13];
|
||||||
|
|
Loading…
Reference in New Issue