diff options
author | Pavel Kirienko <pavel.kirienko@gmail.com> | 2015-01-19 15:49:18 +0300 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-21 14:54:24 +0100 |
commit | 91362223ea5dc5badc34870210c356eb47ebd59d (patch) | |
tree | cca5567f56d8aa70879846637acafd5a25a54333 /src/modules | |
parent | f6786d0be91659bfe6cca393d512edd5aa7a407e (diff) | |
download | px4-firmware-91362223ea5dc5badc34870210c356eb47ebd59d.tar.gz px4-firmware-91362223ea5dc5badc34870210c356eb47ebd59d.tar.bz2 px4-firmware-91362223ea5dc5badc34870210c356eb47ebd59d.zip |
Fixed uninitialized fields of UavcanNode
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/uavcan/uavcan_main.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/uavcan/uavcan_main.hpp b/src/modules/uavcan/uavcan_main.hpp index 8a0993f15..583c621eb 100644 --- a/src/modules/uavcan/uavcan_main.hpp +++ b/src/modules/uavcan/uavcan_main.hpp @@ -107,11 +107,11 @@ private: int _task = -1; ///< handle to the OS task bool _task_should_exit = false; ///< flag to indicate to tear down the CAN driver int _armed_sub = -1; ///< uORB subscription of the arming status - actuator_armed_s _armed; ///< the arming request of the system + actuator_armed_s _armed = {}; ///< the arming request of the system bool _is_armed = false; ///< the arming status of the actuators on the bus int _test_motor_sub = -1; ///< uORB subscription of the test_motor status - test_motor_s _test_motor; + test_motor_s _test_motor = {}; bool _test_in_progress = false; unsigned _output_count = 0; ///< number of actuators currently available @@ -135,10 +135,10 @@ private: unsigned _poll_fds_num = 0; int _actuator_direct_sub = -1; ///< uORB subscription of the actuator_direct topic - uint8_t _actuator_direct_poll_fd_num; - actuator_direct_s _actuator_direct; + uint8_t _actuator_direct_poll_fd_num = 0; + actuator_direct_s _actuator_direct = {}; - actuator_outputs_s _outputs; + actuator_outputs_s _outputs = {}; // index into _poll_fds for each _control_subs handle uint8_t _poll_ids[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN]; |