Quadrotor Control Coupling
QuadrtrFlyr
Posts: 73
Hello,
I have a question that has been on my mind for a long time. Currently I am working on a PID controlled quadrotor and am tuning the quadrotor axes SEPARATELY.
I heard though that you can couple the two arms and then have one PID loop executing instead of 2 separate ones. Does anyone know how to approach
my problem? I have done a bunch of research and know the 6 differential equations that model the quadrotor system.. I think I have to use these but am not sure.
Thank you
Robert
I have a question that has been on my mind for a long time. Currently I am working on a PID controlled quadrotor and am tuning the quadrotor axes SEPARATELY.
I heard though that you can couple the two arms and then have one PID loop executing instead of 2 separate ones. Does anyone know how to approach
my problem? I have done a bunch of research and know the 6 differential equations that model the quadrotor system.. I think I have to use these but am not sure.
Thank you
Robert
Comments
Jason probably has the best skills to answer. He has two current threads (see the QUADX thread in this forum and the QuadCopter Ken/Cluso/Jason and others in the General Forum) - both are recent in the last day or two so easy to find).
I suspect the best way to do this would be using quaternions. You would represent your desired orientation with one quaternion and your current orientation with another. You can then measure the angle between them and feed that angle through your PID loop. The resulting PID output would be a "strength" to apply to the motor outputs in a ratio that moves you along the desired axis of rotation.
Quaternions can be a bugger to visualize, but I found that this helped: http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation
For quaternion IMU references, have a look at:
http://www.uavdesign.net/adaptive-a-distributed-control/quaternion-based-quadrotor-control/
http://diydrones.com/profiles/blogs/the-freespace-imu
https://decibel.ni.com/content/docs/DOC-18964
I'm likely to pursue this approach myself at some point, just to see how it compares with my current DCM-based one, but it'll probably be a while.
Jason
Thank you,
Robert
What's your eventual goal? Do you want something that is self-stable, and will hold a set location and altitude? Or just something that's fun to fly? If it's the latter, my current quad uses a single 3-axis gyro and that's it. Anyone who can fly a model helicopter could fly it. The DCM-based version I'm working on will be self-leveling, and will eventually include a compass and altimeter as well, but it still needs a decent amount of tuning before I can release it.