diff options
author | James Goppert <james.goppert@gmail.com> | 2014-06-05 07:06:48 -0400 |
---|---|---|
committer | James Goppert <james.goppert@gmail.com> | 2014-06-05 10:49:31 -0400 |
commit | c4ed97f3c16311601b4983360d51f662729e81d4 (patch) | |
tree | 6691f81c9e87f9729e2ba5ca6a18866a5854f060 /src/modules/controllib/uorb/blocks.cpp | |
parent | 5624c1406aa78aa4bf4b5c0e20dca637c26478d5 (diff) | |
download | px4-firmware-c4ed97f3c16311601b4983360d51f662729e81d4.tar.gz px4-firmware-c4ed97f3c16311601b4983360d51f662729e81d4.tar.bz2 px4-firmware-c4ed97f3c16311601b4983360d51f662729e81d4.zip |
Added uORB tiny pub/sub for usage without struct on stack.
Diffstat (limited to 'src/modules/controllib/uorb/blocks.cpp')
-rw-r--r-- | src/modules/controllib/uorb/blocks.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/controllib/uorb/blocks.cpp b/src/modules/controllib/uorb/blocks.cpp index e8fecef0d..454d0db19 100644 --- a/src/modules/controllib/uorb/blocks.cpp +++ b/src/modules/controllib/uorb/blocks.cpp @@ -82,16 +82,16 @@ void BlockWaypointGuidance::update(vehicle_global_position_s &pos, BlockUorbEnabledAutopilot::BlockUorbEnabledAutopilot(SuperBlock *parent, const char *name) : SuperBlock(parent, name), // subscriptions - _att(&getSubscriptions(), ORB_ID(vehicle_attitude), 20), - _attCmd(&getSubscriptions(), ORB_ID(vehicle_attitude_setpoint), 20), - _ratesCmd(&getSubscriptions(), ORB_ID(vehicle_rates_setpoint), 20), - _pos(&getSubscriptions() , ORB_ID(vehicle_global_position), 20), - _missionCmd(&getSubscriptions(), ORB_ID(position_setpoint_triplet), 20), - _manual(&getSubscriptions(), ORB_ID(manual_control_setpoint), 20), - _status(&getSubscriptions(), ORB_ID(vehicle_status), 20), - _param_update(&getSubscriptions(), ORB_ID(parameter_update), 1000), // limit to 1 Hz + _att(ORB_ID(vehicle_attitude), 20, &getSubscriptions()), + _attCmd(ORB_ID(vehicle_attitude_setpoint), 20, &getSubscriptions()), + _ratesCmd(ORB_ID(vehicle_rates_setpoint), 20, &getSubscriptions()), + _pos(ORB_ID(vehicle_global_position), 20, &getSubscriptions()), + _missionCmd(ORB_ID(position_setpoint_triplet), 20, &getSubscriptions()), + _manual(ORB_ID(manual_control_setpoint), 20, &getSubscriptions()), + _status(ORB_ID(vehicle_status), 20, &getSubscriptions()), + _param_update(ORB_ID(parameter_update), 1000, &getSubscriptions()), // limit to 1 Hz // publications - _actuators(&getPublications(), ORB_ID(actuator_controls_0)) + _actuators(ORB_ID(actuator_controls_0), &getPublications()) { } |