AC_Fence: use inertial nav's get_filter_status

This commit is contained in:
Randy Mackay 2015-01-02 17:08:38 +09:00
parent f35efc56e0
commit c24e997fb2

View File

@ -102,7 +102,7 @@ bool AC_Fence::pre_arm_check() const
}
// if we have horizontal limits enabled, check inertial nav position is ok
if ((_enabled_fences & AC_FENCE_TYPE_CIRCLE)!=0 && !_inav->position_ok()) {
if ((_enabled_fences & AC_FENCE_TYPE_CIRCLE)!=0 && !_inav->get_filter_status().flags.horiz_pos_abs) {
return false;
}