Rover: remove redundant home-setting sanity checks
This commit is contained in:
parent
ab9c084179
commit
1977123362
@ -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…
Reference in New Issue
Block a user