Emile,
Thanks for sharing. This has already been done, for the MPU6K and for the new sensors. But with a proper filter design (digital Butterworth) and identification, not a moving average, which is from a filter view not n optimal choice. The 1000 dps resolution is something worth considering, but last time we discussed this, the verdict was that this range is too narrow for some setups.
It is indeed quite smooth.
-Lorenz
------------------------------------------------------
Lorenz Meier
Computer Vision and Geometry Group
Institute for Visual Computing
ETH Zurich
http://www.inf.ethz.ch/personal/lomeier/
On Sep 2, 2013, at 12:59 PM, Emile Castelnuovo <
emile.ca...@gmail.com<mailto:
emile.ca...@gmail.com>> wrote:
From my experience in fast loops on VRBRAIN (ARM STM32F4) I can tell that probably the best option would be a slightly different approach.
Now that we "speak the same language" I would suggest this approach:
Sample the MPU6000 with 1Khz update rate (fastest possible using internal filter)
Run main loop at 200/250Hz and get 5/4 MPU6000 samples averaged.
Slightly rise default filter to 42Hz or 98Hz
Run scheduler ay 2KHz to get all MPU samples OR (better) re-enable interrupt on MPU6000 to add the samples in the sample array, so scheduler can still run at 1KHz.
Last but not least change the full scale to 1000 dps, this give a slightly more fine resolution
I have successfully flown with this, and I can surely tell the difference is noticeable, smoother, that's the word I would use.
Now I'm not sure what are the performances on your new IMU chip, but I reasonably think that it can be done.
Recently to keep up with the AP_HAL, we switched to the APM:Copter looping time but already working to get the "original" configuration back to life.
Best,
Emile
2013/9/2 <
john...@gmail.com<mailto:
john...@gmail.com>>
To unsubscribe from this group and stop receiving emails from it, send an email to
drones-discus...@googlegroups.com<mailto:
drones-discuss%2Bunsu...@googlegroups.com>.
To unsubscribe from this group and stop receiving emails from it, send an email to
drones-discus...@googlegroups.com<mailto:
drones-discus...@googlegroups.com>.