aboutsummaryrefslogtreecommitdiff
path: root/src/modules/land_detector/MulticopterLandDetector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/land_detector/MulticopterLandDetector.cpp')
-rw-r--r--src/modules/land_detector/MulticopterLandDetector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/land_detector/MulticopterLandDetector.cpp b/src/modules/land_detector/MulticopterLandDetector.cpp
index 61b5867bf..cfb3344f9 100644
--- a/src/modules/land_detector/MulticopterLandDetector.cpp
+++ b/src/modules/land_detector/MulticopterLandDetector.cpp
@@ -43,6 +43,7 @@
#include <cmath>
#include <drivers/drv_hrt.h>
+#include <mathlib/mathlib.h>
MulticopterLandDetector::MulticopterLandDetector() : LandDetector(),
_paramHandle(),
@@ -140,6 +141,7 @@ void MulticopterLandDetector::updateParameterCache(const bool force)
param_get(_paramHandle.maxClimbRate, &_params.maxClimbRate);
param_get(_paramHandle.maxVelocity, &_params.maxVelocity);
param_get(_paramHandle.maxRotation, &_params.maxRotation);
+ _params.maxRotation = math::radians(_params.maxRotation);
param_get(_paramHandle.maxThrottle, &_params.maxThrottle);
}
}