From cb0cf2035d7cbbf11bb7d94fe36fe58544c85413 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Mon, 6 Feb 2017 15:08:07 -0500 Subject: [PATCH] Sub: Refactor to fence.get_safe_alt_min() and fence.get_safe_alt_max() --- ArduSub/Attitude.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduSub/Attitude.cpp b/ArduSub/Attitude.cpp index 76030a2e16..d4f800dc8f 100644 --- a/ArduSub/Attitude.cpp +++ b/ArduSub/Attitude.cpp @@ -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