- #1
Young_kids
- 3
- 0
- TL;DR Summary
- computing remaining 3D angles from x, y and the angle in between them
Hi guys
We have a problem we we are building a flight controller for a drone, but fail to understand how to construct the position controller.
It takes the x, y positions and the angle in between them which we call yaw. How to compute the angles roll and pitch for the desired x and y positions. We have an idea of the following
Can someone explain what formula that converts the x error and y error as well as the angle yaw to the desired roll and pitch angles.
We found a formula
and
But we don't understand why, hope you can help
We have a problem we we are building a flight controller for a drone, but fail to understand how to construct the position controller.
It takes the x, y positions and the angle in between them which we call yaw. How to compute the angles roll and pitch for the desired x and y positions. We have an idea of the following
Can someone explain what formula that converts the x error and y error as well as the angle yaw to the desired roll and pitch angles.
We found a formula
and
But we don't understand why, hope you can help