mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: Access EKF origin through AHRS object
Enables EKF2 use
This commit is contained in:
parent
7c6b31b585
commit
19785c1033
@ -32,7 +32,7 @@ void Copter::ekf_check()
|
||||
{
|
||||
// exit immediately if ekf has no origin yet - this assumes the origin can never become unset
|
||||
Location temp_loc;
|
||||
if (!ahrs.get_NavEKF_const().getOriginLLH(temp_loc)) {
|
||||
if (!ahrs.get_origin(temp_loc)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user