mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
Rover: set home using EKF position
previously the home position could be set from DCM This makes the setting of home slower but more accurate
This commit is contained in:
parent
894bf2a23f
commit
de406da254
@ -17,7 +17,7 @@ bool Rover::set_home_to_current_location(bool lock)
|
||||
{
|
||||
// use position from EKF if available otherwise use GPS
|
||||
Location temp_loc;
|
||||
if (ahrs.get_position(temp_loc)) {
|
||||
if (ahrs.have_inertial_nav() && ahrs.get_position(temp_loc)) {
|
||||
return set_home(temp_loc, lock);
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user