aboutsummaryrefslogtreecommitdiff
path: root/src/modules/fw_att_control/fw_att_control_main.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-05-21 14:22:01 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-05-21 14:22:01 +0200
commit328fc04d29f055df8cdbd2abc8313fb29eb45148 (patch)
tree872692c2a996ee949037a2714088a09e4744241e /src/modules/fw_att_control/fw_att_control_main.cpp
parentc60561b705ddb557ce9b50cc3e41f36018708ef4 (diff)
downloadpx4-firmware-328fc04d29f055df8cdbd2abc8313fb29eb45148.tar.gz
px4-firmware-328fc04d29f055df8cdbd2abc8313fb29eb45148.tar.bz2
px4-firmware-328fc04d29f055df8cdbd2abc8313fb29eb45148.zip
apps: Compile warning fixes
Diffstat (limited to 'src/modules/fw_att_control/fw_att_control_main.cpp')
-rw-r--r--src/modules/fw_att_control/fw_att_control_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/fw_att_control/fw_att_control_main.cpp b/src/modules/fw_att_control/fw_att_control_main.cpp
index 1f3e9f098..6943239e5 100644
--- a/src/modules/fw_att_control/fw_att_control_main.cpp
+++ b/src/modules/fw_att_control/fw_att_control_main.cpp
@@ -304,8 +304,8 @@ FixedwingAttitudeControl::FixedwingAttitudeControl() :
/* publications */
_rate_sp_pub(-1),
- _actuators_0_pub(-1),
_attitude_sp_pub(-1),
+ _actuators_0_pub(-1),
_actuators_1_pub(-1),
/* performance counters */
@@ -773,7 +773,7 @@ FixedwingAttitudeControl::task_main()
_parameters.airspeed_min, _parameters.airspeed_max, airspeed, airspeed_scaling, lock_integrator);
_actuators.control[0] = (isfinite(roll_u)) ? roll_u + _parameters.trim_roll : _parameters.trim_roll;
if (!isfinite(roll_u)) {
- warnx("roll_u %.4f", roll_u);
+ warnx("roll_u %.4f", (double)roll_u);
}
float pitch_u = _pitch_ctrl.control_bodyrate(_att.roll, _att.pitch,