Hey everyone. I’m looking for advice on dialing in a perfect tune on this copter. It feels good in the air, but from what I can tell, the logs say it could be better. You can view the log in-browser here or download it here.
This log was a short test flight after performing an auto tune.
I have the dynamic notch dialed in with RPM filtering. The main thing I’d like to see is ATT.desroll and despitch track closer.
I implemented all of your suggestions and it’s flying very nicely. Here’s the log of the autotune and subsequent test flight. The only thing I see from flying it that could improve is it drops a few feet if you make a more rapid ascent and then bring the throttle back to neutral. Do you have any suggestions on correcting that? Does anything else in the log stick out to you? I’d still like the roll and pitch to track closer but I can’t feel any difference while flying.
That looks pretty good now. I could see what you mean in the log - the throttle channel goes up, the altitude starts going up, but when throttle is leveled the Alt goes down a bit.
Basically the FC thinks you’ve overshot the desired altitude.
Try these, not sure if it will help.
INS_ACCEL_FILTER might be able to go up a bit to 18 - experiment with this one. If it’s too low you’ll see physical oscillations in roll and pitch, if it’s too high you’ll hear it in the motors and RCout channels will show PWMs criss-crossing with a noticeable difference instead of being all about the same.
The Vcc (5 volts) is a touch on the low side, keep an eye on that.
I’d probably revisit the Notch filter settings.
I had an idea that someone said INS_NOTCH has limited value, I think especially if you’re using INS_HNTCH or for lower frequencies??? - but dont take my word for that, check it out yourself.
I think INS_HNTCH_ATT can go higher value, like 30 - that was pointed out many times to people in the Harmonic Notch Filter subject, but I need more experience with it too.
So I’d probably redo the harmonic notch filter tests and make any changes, then run another Autotune.
Normally after that we’ve only ever had to adjust some Yaw settings to suit more or less acro craft.
The notches are the same in terms of their effect - it’s just that one moves dynamically and can target harmonics as well. So if you are targeting a static noise peak then INS_NOTCH will work fine, but generally the noise peaks are all related to motor rpm
In actual fact I was thinking of INS_GYRO_FILTER and these pics below illustrate what I meant. Feel free to continue to experiment with INS_ACCEL_FILTER filter though - it would be nice to hear the results if you get around to it.
I set INS_GYRO_FILTER to 18 and here are the results. Download
The PWM out looks pretty good to me, but I’ll let you be the judge. The only thing at this point I’d like to improve is it’s ability to hold position without an ideal GPS lock, and the fact that the motors come down pretty toasty. I’m using Brotherhobby 2812 600kv with APC 13x4.5 MR. I’m going to give the Hereflow another shot and see if it improves the position hold in poor GPS situations.
Lowering you gyro filter will make it hard for your quad to make small adjustments, for a large copter with a lot of mass it doesn’t matter, but for a small copter it’s disastrous. Make sure your DFLT and TFLT settings are comparable with your GYRO_FILT
This particular copter doesn’t like the recommended filter values for it’s size. I originally set it to 30hz which resulted in an unflyable copter. High current consumption, hot motors and really bad vibrations. As I took it back to 20 it’s fine. I’ll double check DFLT and TFLT, thanks!
I had this same problem on a 13" quad, I ended up setting everything back to default and manually tuning it. The Rate Roll/Pitch filter settings were OK (17Hz) but gyro at 30Hz, no way. With some of the pre-tune settings the motors were being wildly commanded from low PWM to High cyclically, I could hear it.
It’s tuned pretty well now and using the FFT referenced notch filter.
I’m thinking that to use INS_GYRO_FILTER at higher values than default (20) requires some manual tuning and generally higher PID’s than normal, specifically D term. This is going to be important for smaller frames, and less so for anything over about 13inches, which can just stick with default INS_GYRO_FILTER.
If you look at the default “Preset” values in MissionPlanner for the Hexsoon 450, the INS_GYRO_FILTER is 40 but PIDs are higher than usual for a frame that size.
I’m thinking about gathering a whole range of param files from everyone to look for trends relating PIDs to frame size (and a few other things). I’m hoping I can narrow down default values a little more and reduce first-flight instability and crashes -> then let Autotune take over.
I just saw your other post and I think that’s a good idea. The curve function for prop size to Gyro filter may need some tweaking. Perhaps a multi order poly function. It’s hard to know w/o a lot of data. The ATC_ACCEL_P/R values were too low on my 13" also. back at default performs better. But this may depend on the use case. It’s a 13" quad but it’s light on 6S power and it’s not carrying anything.