Browse Source

Rover: remove redundant home-setting sanity checks

master
Peter Barker 6 years ago committed by Peter Barker
parent
commit
1977123362
  1. 8
      APMrover2/commands.cpp

8
APMrover2/commands.cpp

@ -19,14 +19,6 @@ bool Rover::set_home_to_current_location(bool lock) @@ -19,14 +19,6 @@ bool Rover::set_home_to_current_location(bool lock)
// returns true if home location set successfully
bool Rover::set_home(const Location& loc, bool lock)
{
// check location is valid
if (loc.lat == 0 && loc.lng == 0 && loc.alt == 0) {
return false;
}
if (!check_latlng(loc)) {
return false;
}
const bool home_was_set = ahrs.home_is_set();
// set ahrs home

Loading…
Cancel
Save