Hello,
I have a general questions about the trajectory control of quadcopter. Suppose we have a ground station which can send the control command to quadcopter and all accurate feeback data. For a specific trajectory, by using PID, we can get a position error [x_e, y_e, z_e]', further, we can get three desired control input in drone body frame [u_x,u_y,u_z]'. Then based on some equations, we can get the control input in world frame [T, phi,theta,psi], which are desired thrust, roll, pitch and yaw (suppose psi=0 all the time). Then we can calculate the desired torque based on [tau_x, tau_y, tau_z]. Finally, the desired rotor speed can be generated based on [T,tau_x,tau_y,tau_z].
However, the control inputs sent from the ground station are just [thrust, roll, pitch, yaw_rate]. Then for the above calculation, after we get the [T, phi, theta, psi], we need another PID controller to control the roll, pitch and yaw. Then the control inputs are [T, roll, pitch, yaw_rate]=[T, PID(phi), PID(theta), PID(psi)].
Is my understanding correct?
Thanks
I have a general questions about the trajectory control of quadcopter. Suppose we have a ground station which can send the control command to quadcopter and all accurate feeback data. For a specific trajectory, by using PID, we can get a position error [x_e, y_e, z_e]', further, we can get three desired control input in drone body frame [u_x,u_y,u_z]'. Then based on some equations, we can get the control input in world frame [T, phi,theta,psi], which are desired thrust, roll, pitch and yaw (suppose psi=0 all the time). Then we can calculate the desired torque based on [tau_x, tau_y, tau_z]. Finally, the desired rotor speed can be generated based on [T,tau_x,tau_y,tau_z].
However, the control inputs sent from the ground station are just [thrust, roll, pitch, yaw_rate]. Then for the above calculation, after we get the [T, phi, theta, psi], we need another PID controller to control the roll, pitch and yaw. Then the control inputs are [T, roll, pitch, yaw_rate]=[T, PID(phi), PID(theta), PID(psi)].
Is my understanding correct?
Thanks