Sub: Refactor to fence.get_safe_alt_min() and fence.get_safe_alt_max()

This commit is contained in:
Jacob Walser 2017-02-06 15:08:07 -05:00 committed by Andrew Tridgell
parent 868be023ee
commit cb0cf2035d
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ void Sub::update_poscon_alt_max()
#if AC_FENCE == ENABLED
// set fence altitude limit in position controller
if ((fence.get_enabled_fences() & AC_FENCE_TYPE_ALT_MAX) != 0) {
min_alt_cm = fence.get_safe_depth()*100.0f;
max_alt_cm = fence.get_safe_alt()*100.0f;
min_alt_cm = fence.get_safe_alt_min()*100.0f;
max_alt_cm = fence.get_safe_alt_max()*100.0f;
}
#endif
// pass limit to pos controller