Hi, I finally got my hexacopter decked out with new motors and a new battery. It seemed to be flying fine with the default PID parameters, I had tuned the harmonic notch, and I finally even managed to get autotune (roll) to complete this morning. Happy days! It seemed sane with the new parameters while still in the air and I landed to save them.
I recharged the battery and just went to launch to calibrate pitch and yaw. Unfortunately as soon as I left the ground there were huge oscillations and the copter is now busted.
I’d appreciate any suggestions please. I’m suspicious about the feedforward being enabled and the ATC_ACCEL_[PR]_MAX parameters. For instance, why did it change ATC_ACCEL_P_MAX when I only tuned roll… any why set it to zero?
Thanks Dave. They are the parameters that were changed during the autotune flight.
I did expect the P&I to be reduced from default, it has 6x 14" 630Kv on a ~3.5kg total airframe. Whether it went too far… maybe? But could that cause oscillations? It behaved itself during pilot test after the autotune completed. Plot of the test attached, NB: I had only tuned roll.
Autotune wouldn’t set ATC_ACCEL_P_MAX to zero. I would guess you entered that value by mistake while updating the Initial Tuning parameters. .027 for Roll Rate P/I looks way off. You may want to start over.
Hi Manav. Do you mean the vibration in the log_55 file? That is just a couple of seconds of log when the drone was oscillating wildly, so I am not reading too much into that.
The vibration seems to have been reasonable (mostly <30) and stable during the ten minute autotuning flight.
I’m interested to hear people’s thoughts, but am not so worried by the low gains that autotune found at this stage, the drone has a 4.9:1 thrust to weight ratio (ecalc) and I expected quite low gains from autotune.
When I get it flying again I’ll reset the ATC_ACCEL_P_MAX and try turning the FF off and see how it goes.
Yeah there’s a big lag and overshoot! I assume that’s because of the low gain and a bit of integral wind-up. Apart from the harmonic notch, the filters were all set according to the spreadsheet someone provided here on the forum. It flies okay now restoring PI&D gains without changing anything else.
The main thing that’s doing my head in now is why the performance during the “pilot test” after auto-tune looked good (ie it seems that auto-tune found values that gave a good response), but after a reboot I had the big oscillations. I might need to RTFS on that one.
I would set the RAT P and I terms back to 0.11 and the RAT D terms to .006, for both pitch and roll.
And that ATC_ANG_RLL_P is back to 4.5, or maybe as high as 6 to start with. Set ATC_ANG_PIT_P the same.
See if you can get airborne with that and let’s see the log.
There was a couple of departures there, particularly at 13:09:53
Y axis vibrations indicate either the antivibration mounting is not equal in all directions, or something is touching or pulling on the flight controller. X axis is OK.
Z axis vibrations are poor too and will need to be fixed. Maybe a better flight controller mounting??
Don’t fly until you’re sure the Z axis vibrations are improved, or you risk a fly-away. Stay in Stabilise mode for tests until you are more confident the vibrations are under control.
Motor 6 has higher than average output and motor 5 is lower than average, indicating a weight imbalance. Not a big deal, but just something to check.
I would set these and run Autotune on pitch and roll when you have the props sorted and vibrations fixed: