AutoTune is a feature available in ArduCopter 3.1-rc5 (and later) versions. It attempts to tune the Stabilize P and Rate P and D terms that provide the highest response without significant overshoot. It does this by twitching the copter in the roll and pitch access which means that the copter needs to be basically flyable in AltHold mode before attempting to use AutoTune.
How to invoke AutoTune
1. Set up one flight mode switch position to be AltHold.
2. Set the Ch7 Opt or Ch8 Opt to Autotune to allow you to turn the auto tuning on/off with the ch7 or ch8 switch.
3. Ensure the ch7 or ch8 switch is in the LOW position.
4. Wait for a calm day and go to a large open area.
5. Take off and put the copter into AltHold mode at a comfortable altitude.
6. Set the ch7/ch8 switch to the HIGH position to engage auto tuning:
- You will see it twitch about 20 degrees left and right for a few minutes, then it will repeat forward and back.
- Use the roll and pitch stick at any time to reposition the copter if it drifts away (it will use the original PID gains during repositioning and between tests). When you release the sticks it will continue auto tuning where it left off.
- Move the ch7/ch8 switch into the LOW position at any time to abandon the autotuning and return to the origin PIDs.
- Make sure that you do not have any trim set on your transmitter or the autotune may not get the signal that the sticks are centered.
7. When the tune completes the copter will change back to the original PID gains.
8. Put the ch7/ch8 switch into the LOW position then back to the HIGH position to test the tuned PID gains.
9. Put the ch7/ch8 switch into the LOW position to fly using the original PID gains.
10. If you are happy with the autotuned PID gains, leave the ch7/ch8 switch in the HIGH position, land and disarm to save the PIDs permanently.
If you DO NOT like the new PIDS, switch ch7/ch8 LOW to return to the original PIDs. The gains will not be saved when you disarm.
- Warning! AutoTune can request very large and fast changes in outputs to the motors which can cause ESC sync issues especially when using SimonK firmware and/or low KV motors (under 500KV). See this video showing a test which recreates a sync problem.
- AutoTune is sometimes unable to find a good tune for frames with very soft dampening on the APM or very flexible arms.
- For best results the copter shouldn’t be allowed to build up too much speed. This can be prevented by applying a quick correction between tests (twitches).
- Be advised that AutoTune will engage in Stabilize, so don’t accidentally flip your AutoTune switch until you are in AltHold and ready to begin the procedure.
- When reporting issues with AutoTune please include a description of your frame and a dataflash log of the flight.
ATUN (auto tune overview) and ATDE (auto tune details) messages are written to the dataflash logs. Some details of the contents of those messages can be found on the dataflash logging message details wiki page.
Questions about this page? Comments? Suggestions? Post to APM Forum! Use the platform specific to your query, and make sure to include the name of the page you are referring to.