diff options
author | Pavel Kirienko <pavel.kirienko@gmail.com> | 2014-05-08 23:34:23 +0400 |
---|---|---|
committer | Pavel Kirienko <pavel.kirienko@gmail.com> | 2014-05-08 23:34:23 +0400 |
commit | c697aae17a32f25b2f163282b9cb18efedb14d77 (patch) | |
tree | fd2b3bb6474aa8797568266c39f596081a1fa6ab /src/modules/uavcan/uavcan_main.hpp | |
parent | 4a98dae227f3e60f1a220164bce0b995ce303f3d (diff) | |
download | px4-firmware-c697aae17a32f25b2f163282b9cb18efedb14d77.tar.gz px4-firmware-c697aae17a32f25b2f163282b9cb18efedb14d77.tar.bz2 px4-firmware-c697aae17a32f25b2f163282b9cb18efedb14d77.zip |
Proper IO miltiplexing libuavcan + ORB
Diffstat (limited to 'src/modules/uavcan/uavcan_main.hpp')
-rw-r--r-- | src/modules/uavcan/uavcan_main.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/uavcan/uavcan_main.hpp b/src/modules/uavcan/uavcan_main.hpp index f4a709c79..751a94a8a 100644 --- a/src/modules/uavcan/uavcan_main.hpp +++ b/src/modules/uavcan/uavcan_main.hpp @@ -94,6 +94,7 @@ public: private: int init(uavcan::NodeID node_id); + void node_spin_once(); int run(); int _task = -1; ///< handle to the OS task @@ -115,6 +116,6 @@ private: int _control_subs[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN] = {}; actuator_controls_s _controls[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN] = {}; orb_id_t _control_topics[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN] = {}; - pollfd _poll_fds[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN] = {}; + pollfd _poll_fds[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN + 1] = {}; ///< +1 for /dev/uavcan/busevent unsigned _poll_fds_num = 0; }; |