Browse Source

Rover: rename AP_AHRS::get_position to get_location

gps-1.3.1
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
03cde13b55
  1. 2
      Rover/Log.cpp
  2. 2
      Rover/Rover.cpp
  3. 4
      Rover/commands.cpp

2
Rover/Log.cpp

@ -45,7 +45,7 @@ void Rover::Log_Write_Depth() @@ -45,7 +45,7 @@ void Rover::Log_Write_Depth()
// get position
Location loc;
IGNORE_RETURN(ahrs.get_position(loc));
IGNORE_RETURN(ahrs.get_location(loc));
for (uint8_t i=0; i<rangefinder.num_sensors(); i++) {
const AP_RangeFinder_Backend *s = rangefinder.get_backend(i);

2
Rover/Rover.cpp

@ -263,7 +263,7 @@ void Rover::ahrs_update() @@ -263,7 +263,7 @@ void Rover::ahrs_update()
ahrs.update();
// update position
have_position = ahrs.get_position(current_loc);
have_position = ahrs.get_location(current_loc);
// set home from EKF if necessary and possible
if (!ahrs.home_is_set()) {

4
Rover/commands.cpp

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
bool Rover::set_home_to_current_location(bool lock)
{
Location temp_loc;
if (ahrs.have_inertial_nav() && ahrs.get_position(temp_loc)) {
if (ahrs.have_inertial_nav() && ahrs.get_location(temp_loc)) {
if (!set_home(temp_loc, lock)) {
return false;
}
@ -64,7 +64,7 @@ void Rover::update_home() @@ -64,7 +64,7 @@ void Rover::update_home()
}
Location loc{};
if (!ahrs.get_position(loc)) {
if (!ahrs.get_location(loc)) {
return;
}

Loading…
Cancel
Save