mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 09:11:38 +08:00
fw_att_control: workaround, don't publish to actuator_1
This commit is contained in:
@@ -832,18 +832,18 @@ FixedwingAttitudeControl::task_main()
|
|||||||
_actuators_0_pub = orb_advertise(ORB_ID(actuator_controls_0), &_actuators);
|
_actuators_0_pub = orb_advertise(ORB_ID(actuator_controls_0), &_actuators);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_actuators_1_pub > 0) {
|
// if (_actuators_1_pub > 0) {
|
||||||
/* publish the attitude setpoint */
|
// /* publish the attitude setpoint */
|
||||||
orb_publish(ORB_ID(actuator_controls_1), _actuators_1_pub, &_actuators_airframe);
|
// orb_publish(ORB_ID(actuator_controls_1), _actuators_1_pub, &_actuators_airframe);
|
||||||
// warnx("%.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f",
|
//// warnx("%.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f",
|
||||||
// (double)_actuators_airframe.control[0], (double)_actuators_airframe.control[1], (double)_actuators_airframe.control[2],
|
//// (double)_actuators_airframe.control[0], (double)_actuators_airframe.control[1], (double)_actuators_airframe.control[2],
|
||||||
// (double)_actuators_airframe.control[3], (double)_actuators_airframe.control[4], (double)_actuators_airframe.control[5],
|
//// (double)_actuators_airframe.control[3], (double)_actuators_airframe.control[4], (double)_actuators_airframe.control[5],
|
||||||
// (double)_actuators_airframe.control[6], (double)_actuators_airframe.control[7]);
|
//// (double)_actuators_airframe.control[6], (double)_actuators_airframe.control[7]);
|
||||||
|
//
|
||||||
} else {
|
// } else {
|
||||||
/* advertise and publish */
|
// /* advertise and publish */
|
||||||
_actuators_1_pub = orb_advertise(ORB_ID(actuator_controls_1), &_actuators_airframe);
|
// _actuators_1_pub = orb_advertise(ORB_ID(actuator_controls_1), &_actuators_airframe);
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user