|
|
|
@ -62,7 +62,7 @@ struct Location AP_InertialNav_NavEKF::get_origin() const
@@ -62,7 +62,7 @@ struct Location AP_InertialNav_NavEKF::get_origin() const
|
|
|
|
|
{ |
|
|
|
|
struct Location ret; |
|
|
|
|
if (!_ahrs_ekf.get_origin(ret)) { |
|
|
|
|
// initialise location to all zeros if EKF1 origin not yet set
|
|
|
|
|
// initialise location to all zeros if EKF origin not yet set
|
|
|
|
|
memset(&ret, 0, sizeof(ret)); |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|