FW att control: Add support for multi uORB topics

This commit is contained in:
Lorenz Meier
2014-06-10 15:09:41 +02:00
parent 699ad1512c
commit e3e8bf25be
@@ -520,7 +520,7 @@ FixedwingAttitudeControl::vehicle_accel_poll()
orb_check(_accel_sub, &accel_updated); orb_check(_accel_sub, &accel_updated);
if (accel_updated) { if (accel_updated) {
orb_copy(ORB_ID(sensor_accel), _accel_sub, &_accel); orb_copy(ORB_ID(sensor_accel0), _accel_sub, &_accel);
} }
} }
@@ -568,7 +568,7 @@ FixedwingAttitudeControl::task_main()
*/ */
_att_sp_sub = orb_subscribe(ORB_ID(vehicle_attitude_setpoint)); _att_sp_sub = orb_subscribe(ORB_ID(vehicle_attitude_setpoint));
_att_sub = orb_subscribe(ORB_ID(vehicle_attitude)); _att_sub = orb_subscribe(ORB_ID(vehicle_attitude));
_accel_sub = orb_subscribe(ORB_ID(sensor_accel)); _accel_sub = orb_subscribe(ORB_ID(sensor_accel0));
_airspeed_sub = orb_subscribe(ORB_ID(airspeed)); _airspeed_sub = orb_subscribe(ORB_ID(airspeed));
_vcontrol_mode_sub = orb_subscribe(ORB_ID(vehicle_control_mode)); _vcontrol_mode_sub = orb_subscribe(ORB_ID(vehicle_control_mode));
_params_sub = orb_subscribe(ORB_ID(parameter_update)); _params_sub = orb_subscribe(ORB_ID(parameter_update));