Browse Source

AP_Camera: rename AP_AHRS::get_position to get_location

gps-1.3.1
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
84e58c4f7f
  1. 4
      libraries/AP_Camera/AP_Camera.cpp
  2. 2
      libraries/AP_Camera/AP_Camera_Logging.cpp

4
libraries/AP_Camera/AP_Camera.cpp

@ -368,7 +368,7 @@ void AP_Camera::update() @@ -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() @@ -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;

2
libraries/AP_Camera/AP_Camera_Logging.cpp

@ -7,7 +7,7 @@ void AP_Camera::Write_CameraInfo(enum LogMessages msg, uint64_t timestamp_us) @@ -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.
}

Loading…
Cancel
Save