aboutsummaryrefslogtreecommitdiff
path: root/src/modules/land_detector/MulticopterLandDetector.cpp
diff options
context:
space:
mode:
authorJohan Jansen <jnsn.johan@gmail.com>2015-02-09 12:47:31 +0100
committerJohan Jansen <jnsn.johan@gmail.com>2015-02-09 12:47:31 +0100
commit004118f929a03e0d42e363dd2b74330ccf6b82fe (patch)
treeb4d4e57d90936ab65a473e1708cb6173f5299831 /src/modules/land_detector/MulticopterLandDetector.cpp
parent01dc7747032bc3d14408e23a13ef45c9f37e46c5 (diff)
downloadpx4-firmware-004118f929a03e0d42e363dd2b74330ccf6b82fe.tar.gz
px4-firmware-004118f929a03e0d42e363dd2b74330ccf6b82fe.tar.bz2
px4-firmware-004118f929a03e0d42e363dd2b74330ccf6b82fe.zip
LandDetector: Change rotation rate in rads/s to deg/s (more similar to mpc params)
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);
}
}