Rover: remove redundant home-setting sanity checks

This commit is contained in:
Peter Barker 2019-02-13 13:46:53 +11:00 committed by Peter Barker
parent ab9c084179
commit 1977123362
1 changed files with 0 additions and 8 deletions

View File

@ -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