We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ba69be commit 737bf0cCopy full SHA for 737bf0c
ArduPlane/altitude.cpp
@@ -412,11 +412,11 @@ void Plane::check_fbwb_altitude(void)
412
// taking fence max and min altitude (with margin)
413
const uint8_t enabled_fences = plane.fence.get_enabled_fences();
414
if ((enabled_fences & AC_FENCE_TYPE_ALT_MIN) != 0) {
415
- min_alt_cm = plane.fence.get_safe_alt_min_m()*100.0;
+ min_alt_cm = plane.fence.get_relative_safe_alt_min_m()*100.0;
416
should_check_min = true;
417
}
418
if ((enabled_fences & AC_FENCE_TYPE_ALT_MAX) != 0) {
419
- max_alt_cm = plane.fence.get_safe_alt_max_m()*100.0;
+ max_alt_cm = plane.fence.get_relative_safe_alt_max_m()*100.0;
420
should_check_max = true;
421
422
#endif
0 commit comments