SET_ATTITUDE_TARGET with XY correction

I have a companion computer and an optical flow sensor, which I intend to use to control a drone’s pitch and yaw movements. My method involves using the SET_ATTITUDE_TARGET command while ignoring Quaternion using the bitmask. If I set the bitmask to also ignore the roll, will there be compensation for any deviation in XY due to the roll?

For example, if I rotate the drone by 30 degrees in yaw and then fly straight using pitch, but encounter windy conditions, will the roll be automatically corrected, or will I need to make the roll corrections myself?

1 Like