Copter: Access EKF origin through AHRS object

Enables EKF2 use
This commit is contained in:
Paul Riseborough 2015-10-17 17:00:32 +11:00 committed by Andrew Tridgell
parent 7c6b31b585
commit 19785c1033
1 changed files with 1 additions and 1 deletions

View File

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