aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator/estimator.cpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-06-02 22:25:53 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-06-02 22:25:53 +0200
commitb40fcb0aac615e73d140db98381b5b72f6dba4e2 (patch)
tree5f6d527b7eac717a120187d2d5afa2c0f64b2094 /src/modules/ekf_att_pos_estimator/estimator.cpp
parenteb02c6ce4900a3dfe96592219852b2205c5d691d (diff)
parent7df87187c0c25dc481067cf1fc8c0bc5e462e181 (diff)
downloadpx4-firmware-b40fcb0aac615e73d140db98381b5b72f6dba4e2.tar.gz
px4-firmware-b40fcb0aac615e73d140db98381b5b72f6dba4e2.tar.bz2
px4-firmware-b40fcb0aac615e73d140db98381b5b72f6dba4e2.zip
Merge pull request #1036 from PX4/mtecs_wind_estimate
mTECS branch wind estimation
Diffstat (limited to 'src/modules/ekf_att_pos_estimator/estimator.cpp')
-rw-r--r--src/modules/ekf_att_pos_estimator/estimator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ekf_att_pos_estimator/estimator.cpp b/src/modules/ekf_att_pos_estimator/estimator.cpp
index 5db1adbb3..1320b4668 100644
--- a/src/modules/ekf_att_pos_estimator/estimator.cpp
+++ b/src/modules/ekf_att_pos_estimator/estimator.cpp
@@ -2042,10 +2042,10 @@ float AttPosEKF::ConstrainFloat(float val, float min, float max)
float ret;
if (val > max) {
ret = max;
- ekf_debug("> max: %8.4f, val: %8.4f", max, val);
+ ekf_debug("> max: %8.4f, val: %8.4f", (double)max, (double)val);
} else if (val < min) {
ret = min;
- ekf_debug("< min: %8.4f, val: %8.4f", min, val);
+ ekf_debug("< min: %8.4f, val: %8.4f", (double)min, (double)val);
} else {
ret = val;
}