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