How Does MAVLink Change Drone's Attitude?


Hello all,

Once the drone is instructed to play the onboard flightplan, what is the process MAVLink uses to navigate the drones through waypoints? Could anyone point me in the direction of where I might find this information?

Many thanks!



I don’t understand your question. Do you want to know how the drone does internally to go to a waypoint?


In essence yes: once the drone executes the MAVLink file onboard via sendMavlinkStart, how or where does MAVLink tell the drone to orient itself to navigate to a waypoint?


I don’t really know how the drone is doing bu basically, it knows its position and orientation, it knows where it should go, so it rotates and tilt itself to go to its target position. Then, periodically it corrects its orientation and inclination.

This part of the drone is not open sourced, but there are autopilot pieces of software that are, like Ardupilot. You can probably find your answer there.