aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uavcan/uavcan_main.hpp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2014-11-20 09:05:10 +1100
committerAndrew Tridgell <tridge@samba.org>2014-11-26 08:32:46 +1100
commit2dae1bc542746ed373458b55a8e564607700d17d (patch)
treea63be92817b41d0d361ba29a2dd3226d1ec27f17 /src/modules/uavcan/uavcan_main.hpp
parent7cb613bb264499e56ad2743c75d563117978eddb (diff)
downloadpx4-firmware-2dae1bc542746ed373458b55a8e564607700d17d.tar.gz
px4-firmware-2dae1bc542746ed373458b55a8e564607700d17d.tar.bz2
px4-firmware-2dae1bc542746ed373458b55a8e564607700d17d.zip
uavcan: break the link between poll fd indexes and controls
this linkage was fragile and makes it harder to add new orb subscriptions to the uavcan code
Diffstat (limited to 'src/modules/uavcan/uavcan_main.hpp')
-rw-r--r--src/modules/uavcan/uavcan_main.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/uavcan/uavcan_main.hpp b/src/modules/uavcan/uavcan_main.hpp
index 274321f0d..b791663d4 100644
--- a/src/modules/uavcan/uavcan_main.hpp
+++ b/src/modules/uavcan/uavcan_main.hpp
@@ -127,4 +127,7 @@ private:
orb_id_t _control_topics[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN] = {};
pollfd _poll_fds[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN + 1] = {}; ///< +1 for /dev/uavcan/busevent
unsigned _poll_fds_num = 0;
+
+ // index into _poll_fds for each _control_subs handle
+ uint8_t _poll_ids[NUM_ACTUATOR_CONTROL_GROUPS_UAVCAN];
};