mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AC_WPNav: rename AP_AHRS::get_position to get_location
This commit is contained in:
parent
965b03f143
commit
05a5754452
@ -70,7 +70,7 @@ bool AC_WPNav_OA::update_wpnav()
|
|||||||
// run path planning around obstacles
|
// run path planning around obstacles
|
||||||
AP_OAPathPlanner *oa_ptr = AP_OAPathPlanner::get_singleton();
|
AP_OAPathPlanner *oa_ptr = AP_OAPathPlanner::get_singleton();
|
||||||
Location current_loc;
|
Location current_loc;
|
||||||
if ((oa_ptr != nullptr) && AP::ahrs().get_position(current_loc)) {
|
if ((oa_ptr != nullptr) && AP::ahrs().get_location(current_loc)) {
|
||||||
|
|
||||||
// backup _origin and _destination when not doing oa
|
// backup _origin and _destination when not doing oa
|
||||||
if (_oa_state == AP_OAPathPlanner::OA_NOT_REQUIRED) {
|
if (_oa_state == AP_OAPathPlanner::OA_NOT_REQUIRED) {
|
||||||
|
Loading…
Reference in New Issue
Block a user