Go Down

Topic: Closed-Loop RC Autopilot Demonstration (Read 697 times) previous topic - next topic

ZacharyBruno

Jan 07, 2013, 07:32 pm Last Edit: Jan 07, 2013, 07:33 pm by ZacharyBruno Reason: 1
Here I demonstrate our current setup with a test board. I'm demonstrating the closed-loop operation with periodic trimming. I only showed the ailerons working, but the pitch control surface works as well.

The first part of the program "demos" the control surfaces, then checks to see if the IMU is connected. If it is not connected, it will not move on to the main part of the program. (This will be useful when we program the plane to take-off, as we do not want it to take-off without receiving positional data!)

The main part of the program uses a single line of code to control the roll, pitch, yaw, speed, and duration; like this:

Code: [Select]
myPlane.fly(roll, pitch, yaw, motor, time);

Inputting any particular values into the function will cause the plane to "hold" the given angles and speeds for the duration specified.

By creating this handy function, it will be now easy to chain these functions together dynamically to create complex maneuvers based on mathematical functions.

http://www.youtube.com/watch?v=P9C0BPTcaU4

http://www.youtube.com/watch?v=Gg4yRzo1IxE

All the best,
Zachary
http://radarproject.wordpress.com/
RadarProject - Arduino Autopilot for RC http://radarproject.wordpress.com/

Go Up