From 84e58c4f7f5b96237d29fc2f0e941c0da1497cb7 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 21 Jan 2022 10:42:40 +1100 Subject: [PATCH] AP_Camera: rename AP_AHRS::get_position to get_location --- libraries/AP_Camera/AP_Camera.cpp | 4 ++-- libraries/AP_Camera/AP_Camera_Logging.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Camera/AP_Camera.cpp b/libraries/AP_Camera/AP_Camera.cpp index c8afd3c8b5..c195823e55 100644 --- a/libraries/AP_Camera/AP_Camera.cpp +++ b/libraries/AP_Camera/AP_Camera.cpp @@ -368,7 +368,7 @@ void AP_Camera::update() const AP_AHRS &ahrs = AP::ahrs(); Location current_loc; - if (!ahrs.get_position(current_loc)) { + if (!ahrs.get_location(current_loc)) { // completely ignore this failure! AHRS will provide its best guess. } @@ -502,7 +502,7 @@ void AP_Camera::take_picture() void AP_Camera::prep_mavlink_msg_camera_feedback(uint64_t timestamp_us) { const AP_AHRS &ahrs = AP::ahrs(); - if (!ahrs.get_position(feedback.location)) { + if (!ahrs.get_location(feedback.location)) { // completely ignore this failure! AHRS will provide its best guess. } feedback.timestamp_us = timestamp_us; diff --git a/libraries/AP_Camera/AP_Camera_Logging.cpp b/libraries/AP_Camera/AP_Camera_Logging.cpp index a3d32ef1f7..0451d7f127 100644 --- a/libraries/AP_Camera/AP_Camera_Logging.cpp +++ b/libraries/AP_Camera/AP_Camera_Logging.cpp @@ -7,7 +7,7 @@ void AP_Camera::Write_CameraInfo(enum LogMessages msg, uint64_t timestamp_us) const AP_AHRS &ahrs = AP::ahrs(); Location current_loc; - if (!ahrs.get_position(current_loc)) { + if (!ahrs.get_location(current_loc)) { // completely ignore this failure! AHRS will provide its best guess. }