AC_Fence: use inertial nav's get_filter_status
This commit is contained in:
parent
f35efc56e0
commit
c24e997fb2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user