For example, when the roll angle is more than 45 degress, I shoud disable motors? How can I relealize it? Thanks
A simple version of this has been implemented for VTOL (https://github.com/PX4/Firmware/blob/master/src/modules/vtol_att_control/vtol_type.cpp#L258). There's definitely interest in generalizing the idea.
Hi, I used the following orderpx4_ioctl(fd, PWM_SERVO_DISARM, 0);but the motor did not stop, thanks