HobbyKing.com New Products Flash Sale
joebarteam's blog
Posted by joebarteam | Oct 13, 2011 @ 08:31 AM | 25,483 Views
In this mini 'how to' I try to show how to tune the behavior of a MegaPirate multicopter. This 'how to' is based on the excellent OpenPilot instructions.

Because the MegaPirate is suitable for a wide selection of frames, controllers and multi sensor the defaults in the code needs to be tuned for your specific platform.

Most MegaPirate users, or (it's parent code) the ArduCopter users concentrate on the stable mode only. I tend to take another approach because of the nature of the PId loop.
First the inner loop or rate is used and when in stable the outer loop will kick in. In this picture you can see the structure.



Because of that, I like to tune the rate (acro mode) and make it as flyable and stable as possible. It will however not level, thats the stable mode.

Rate (acro) mode tuning
Rate will only use the gyro.
In the first step, concentrate solely on the rate 'P', 'P' is the rotation value to counter external rotation effects caused by influences like wind for example. The gyro will detect such rotations and feed the control loop.

High frequency oscillations will occur when 'P' is to high, if is feels to sluggish or it is not flyable at all (see vid) it is to low.

The rate 'I' value is normally not used, but as I explained, I like to tune the rate as good as possible so the next step is tuning the rate 'I'
The 'I' in rate is used for angle hold, if it is 0 or close to 0 the copter will never hold an angle and swing around it's axis. Increase...Continue Reading
Posted by joebarteam | Sep 25, 2011 @ 04:00 AM | 3,932 Views
2.049 : Orientation lose fixed (magnetometer), PWM output can be increased to 400hz is the ESC's are capable. Testflight with quad and hexa, FFIMU 1.2 and FREEIMU 0.3.5


2.048 : Lots of changes, test flight later today
10/16/2011 - Status : Not satisfied yet, HexA looses orientation after a couple of minutes and loiter overshoots.
2.0.42 still the best yet.
Deleted


2.042 : New and improved

Please note: default IMU in ADC_ADS7844.cpp is now FreeImu, change it to whatever you have..