Skip to content
Snippets Groups Projects
Commit c4cf28fa authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Move FW att control to multi pub sub API

parent 83a0f8e5
No related branches found
No related tags found
No related merge requests found
......@@ -549,7 +549,7 @@ FixedwingAttitudeControl::vehicle_accel_poll()
orb_check(_accel_sub, &accel_updated);
if (accel_updated) {
orb_copy(ORB_ID(sensor_accel0), _accel_sub, &_accel);
orb_copy(ORB_ID(sensor_accel), _accel_sub, &_accel);
}
}
......@@ -619,7 +619,7 @@ FixedwingAttitudeControl::task_main()
*/
_att_sp_sub = orb_subscribe(ORB_ID(vehicle_attitude_setpoint));
_att_sub = orb_subscribe(ORB_ID(vehicle_attitude));
_accel_sub = orb_subscribe(ORB_ID(sensor_accel0));
_accel_sub = orb_subscribe_multi(ORB_ID(sensor_accel), 0);
_airspeed_sub = orb_subscribe(ORB_ID(airspeed));
_vcontrol_mode_sub = orb_subscribe(ORB_ID(vehicle_control_mode));
_params_sub = orb_subscribe(ORB_ID(parameter_update));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment