fans843c3b39
lvl.1
Brazil
Offline
|
I figured out the reason: yawControlMode was ANGLE, and I always sent 0 (zero) as yaw when send FlightControlData for any movement, because I thougt that the reference was the head of the drone. But when sending 0 yaw I was commanding drone to turn to 0 degrees in relation to North. How to solve: getting current head direction and pass it in FlightControlData: yaw = getAircraftInstance().getFlightController().getCompass().getHeading(); |
|