diff options
author | Julian Oes <julian@oes.ch> | 2014-03-11 11:07:48 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-03-11 11:07:48 +0100 |
commit | 2cd29b7c8ce7fc26af6f1a3957e243a18bc09d5b (patch) | |
tree | 9b4d31d5e5ab9d1cb2ef53fa59cee8b770cffe3e | |
parent | 2db140bcabaafcccc1ed2ce070d7a24b4133eb57 (diff) | |
download | px4-firmware-2cd29b7c8ce7fc26af6f1a3957e243a18bc09d5b.tar.gz px4-firmware-2cd29b7c8ce7fc26af6f1a3957e243a18bc09d5b.tar.bz2 px4-firmware-2cd29b7c8ce7fc26af6f1a3957e243a18bc09d5b.zip |
fw_att_control: proper struct initialization
-rw-r--r-- | src/modules/fw_att_control/fw_att_control_main.cpp | 18 |
1 files changed, 9 insertions, 9 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 ec91f4d8c..fa0f5962f 100644 --- a/src/modules/fw_att_control/fw_att_control_main.cpp +++ b/src/modules/fw_att_control/fw_att_control_main.cpp @@ -295,15 +295,15 @@ FixedwingAttitudeControl::FixedwingAttitudeControl() : _setpoint_valid(false) { /* safely initialize structs */ - _att = {0}; - _accel = {0}; - _att_sp = {0}; - _manual = {0}; - _airspeed = {0}; - _vcontrol_mode = {0}; - _actuators = {0}; - _actuators_airframe = {0}; - _global_pos = {0}; + _att = {}; + _accel = {}; + _att_sp = {}; + _manual = {}; + _airspeed = {}; + _vcontrol_mode = {}; + _actuators = {}; + _actuators_airframe = {}; + _global_pos = {}; _parameter_handles.tconst = param_find("FW_ATT_TC"); |