Pages: [1]   Go Down
Author Topic: Closed-Loop RC Autopilot Demonstration  (Read 677 times)
0 Members and 1 Guest are viewing this topic.
Scottsdale
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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.





All the best,
Zachary
http://radarproject.wordpress.com/
« Last Edit: January 07, 2013, 01:33:57 pm by ZacharyBruno » Logged

RadarProject - Arduino Autopilot for RC http://radarproject.wordpress.com/

Pages: [1]   Go Up
Jump to: