MicroArduCopter, 3" props, Omnibus Nano, Success!

Well done @andyp1per finally I see logs on my omnibus as they should be!
All tings in place and no errors when reading. All OK also from command line tools mav*.py

The only things I see missing are initial MSG like in this SD log from Pixracer (not so important, only to signal):

So the FRAM takes a while to initialize, we donā€™t write out any pages for 2s to cope with this but in 2s you could get enough log messages to fill the buffer and so the early messages will be lost. You could try increasing the log buffer - that might sort it.

2 Likes

I have fast sampling working on the MPU6000: https://github.com/ArduPilot/ardupilot/pull/14423

Thatā€™s great!
Iā€™ll try it soon. Might be rained out for today, but should have periods of clear weather tomorrow.

One of my omnibus copters is using 3018 props w/ 8000kv motors, and is definitely pushing the limits w/out fast sampling.

Great. I see it is also in small copter branch, will try soon.

@andyp1per I tested it on a 3 inch quadcopter with revo-mini.

Here are some results with INS_GYRO_RATE=0 (normal 1KHz sampling)

Similar of what I already seen (without PR 14423) with PkAvg around 330Hz and BwAvg around 150Hz.

Then I set INS_GYRO_RATE=1 (2KHz sampling) and I see something I donā€™t understand completely

It seems to me to see more noise passing in the post-filter FFT and more ā€œspreadā€ of PkAvg and BwAvg with BwAvg frequently near PkAvg.

I have a doubt regarding FFT_MINHZ and FFT_MAXHZ, must they be set to see the fundamental only or also the harmonics?

In the above tests I set them in this way:
FFT_MINHZ = 180
FFT_MAXHZ = 480

Is it OK or have I to set FFT_MAXHZ near 700Hz (in the case with INS_GYRO_RATE=1) ?

You only need to try and capture more harmonics if you are using INS_HNTCH_OPTS=2 otherwise just finding the first harmonic is fine.

Interesting that your second harmonic is so pronounced.

I think probably what you are seeing is the effect of the raw sample rate going from 1Khz to 8Khz rather than the backend rate going to 2Khz. It would also be worth doing a comparison at 1kHz with fast sampling on and off.

That said the post sample noise around 100Hz seems to be higher than pre-sample indicating that it is being added by the notch. One thing to note - when you go from 1Khz to 2Khz your FFT bins will double in width reducing the accuracy. You could increase the FFT length to 64 to compensate.

Here with FFT_WINDOW_SIZE = 64

Is more evident the difference in PkAvg, BwAvg plot then in FFT spectrum.

That looks pretty good. The BW will be mainly because - 2000 / 32 = 62Hz, so the BW will only ever be at minimum 62hz * 3 = 185Hz. At 64 your resolution is suddenly 31Hz.

What kind of frame do you have? My suspicion is that the noise at the low end is frame resonance.

Also be careful - on an F4 with 64 FFT and 2k gyros you are beginning to push the limits.

Thanks for explaining.

It is possible, is a cheap frame with prop guard, rpi zero, rpi camera, many things that could vibrate.

I use it for this kind of experiment:

Anyway it is quite stable.

PM.Load max 70% in little indoor flight.

Unfortunately PM.Load is not a good indicator that your gyro rate is too fast. I havenā€™t figured out a good way to estimate this, perhaps the most reliable is when you lose logging.

@andyp1per
When I set the gyro rate at anything above 2k, as soon as telemetry should start transmitting (when I turn on my RC radio, which is currently doing SBUS, as well as a traditional mavlink telemetry stream), the copter locks upā€¦ (By that I mean it is completely unresponsive, the OSD doesnā€™t update, etc).
If I turn the transmitter off, the copter starts responding again.

Running the omnibus small copter build off your dropbox.

Iā€™ve not seen that. Trying to run 4k on an F4 is futile IMO - you will be killing the CPU I suspect. Thatā€™s not necessarily the issue, but it seems unlikely that the gyro rate is at fault here.

Iā€™ll see if I can find any other patternā€¦ At least test if it does it if I disable telemetry, so we know if itā€™s sbus or telemetry specifically causing itā€¦ Or something w/ the combination.

I had been running a 2 or 3 week old copy you compiled for me, which was to test the crossfire/sbus changes, and I think the double harmonic notch was new in that build as well. It worked fine.

Nothing to report at 2kā€¦ It worked. FFT goes to 1000 instead of 500. Everything looks and performs well.

Just FYI I recently fixed (with @Leonardthall help) a tuning problem on my 3". Autotune gave me good PIDs except YAW would oscillate at low throttle - not always, but a bit of propwash and high MIX_MAN was enough to set it off. I had to reduce MOT_THST_EXPO to 0.45 and that really seems to have sorted the problem.

1 Like

Thanks,
That is one of the remaining issues I was having trouble with too. I canā€™t quite get it perfect yet.
And mine breaks in to oscillations once I lower the throttle after a high speed run occasionally. And, just the occasional twitchā€¦ Seemingly for no reason, it will twitch several degrees. I wouldnā€™t care, other than sometimes Iā€™m trying to film videoā€¦

Theyā€™re all subtle and only occasional, but Iā€™d love to get it perfect.

Once I have logs that clearly show the issues, Iā€™ll post themā€¦ Havenā€™t had a lot of flying time this summer, unfortunately.

1 Like

Ok apologies there was actually a bug which was why the sample rate looked wrong for accels. This also meant we were sampling the same accel value multiple times. Note sure what effect this has but Iā€™ve fixed now in my small copter branch.

@wicked1 I am just updating my KakuteF7Mini and OmnibusNanoV6 builds

1 Like

Thanks for info, I will test asap.

Iā€™ve also added https://github.com/ArduPilot/ardupilot/pull/14891 which could possibly make the FFT a little more accurate.

I did an outdoor flight with my 3 inch copter with omnibus v6 nano and small-copter-4.1 (built 5 days ago) with gyro_rate 1KHz (so nothing special).

I had Potential Thrust Loss errors, never seen before, where do I have to investigate? Battery, ESC, ā€¦?

Here the log:
https://drive.google.com/file/d/1KMcnSnuUzRrfgFW86CwTiytZ9y8FSpnh/view?usp=sharing

[Edit]
As battery I use 2 18650 Li-ion cell (Sony / Murata US18650VTC5 2600mAh - 30A), they could go down to 3V each without problems.
Maybe they are a little bit old, too much charge - discharge cycles?