diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-06-30 12:22:45 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-06-30 12:22:45 +0200 |
commit | 568e67355ab491992bb9243d2dce9a740c350aa0 (patch) | |
tree | 3cc88ea87d65e8b5d445edcf68587f0937d949f2 | |
parent | 857b843d445f59f2dc393e4d5f879fc56f77a0e0 (diff) | |
parent | b9e2fa2c0dc77e41846b6982f057cbbc9e60be89 (diff) | |
download | px4-firmware-568e67355ab491992bb9243d2dce9a740c350aa0.tar.gz px4-firmware-568e67355ab491992bb9243d2dce9a740c350aa0.tar.bz2 px4-firmware-568e67355ab491992bb9243d2dce9a740c350aa0.zip |
Merge pull request #1099 from PX4/mpc_warn_fix
mc_pos_control: compiler warning fix
-rw-r--r-- | src/modules/mc_pos_control/mc_pos_control_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mc_pos_control/mc_pos_control_main.cpp b/src/modules/mc_pos_control/mc_pos_control_main.cpp index c24c172af..bcc3e2ae7 100644 --- a/src/modules/mc_pos_control/mc_pos_control_main.cpp +++ b/src/modules/mc_pos_control/mc_pos_control_main.cpp @@ -466,7 +466,7 @@ MulticopterPositionControl::update_ref() { if (_local_pos.ref_timestamp != _ref_timestamp) { double lat_sp, lon_sp; - float alt_sp; + float alt_sp = 0.0f; if (_ref_timestamp != 0) { /* calculate current position setpoint in global frame */ |