Hi BRM!
Your noise stuff got me thinking.
I defined "noise" as something like this: When all is done/settled and calibrated and there is still some jitter around sensor zero going on.
The actual code/sensor calibration implements some noise measuring/simple cancelling for ACC and Gyro (from my debug datacurves I've seen that the acc desperately needs that - no matter what hardware LPF. 42, 100, 256 Hz watched - 256 Hz worse - of course). The noise seems to be quiet symetric around the axes (MPU6050/ACC/Gyro & MMA8452 watched) so I choose a single noise deadband value for acc and gyro - the gyro doesn't seem to really need it (but has it now in its' face - slam - just for the hell of it) at least at 42Hz LPF - acc seems to profit from "double averaged" deadband (tried 1.0x, 1.5x, 2.0x deadband, acc has some nasty spikes that are surprisingly not adequately represented in the average of 10000 values. - Doing a weighted filter or treat those spikes another way seemed to me/and my brain like overkill) - since the measurements are scaled down to mwii 512 the deadband boils down to a smaller factor - but helping the lpf/summation/ins stuff. Barofiltering also reworked (with a lot of testing/farting around) I am pretty sure BMP systems will see a nice boost there as well (ca. 5Hz more readout rate). Althold and PH are absolute killer now from what I've seen on my rig (cheap Dji 450 frame, 980KV motors @ 10'' props ca. 1KG weight, 3S 3300Lipo) during testing in windy condition (rescaled/put to work Pos I - extended gps tiltangle "gps_maxangle"). (Note: Althold tested with MS5611, my BMP085 system needs some assembly but will follow these days). Currently re-doing that IMHO fubar inflight ACC - calibration since it had it's useful days. I think - at the current state - the copter should be trimmed out in the air without recalibrating the acc since that will drive most likely havoc on the ins part (no correct 1G measurement, no acc noisemeasurement - I will not flight test it, since it's crazy from the start). While redoing that part I noticed that every trim stickinput (disarmed/throttleup + ail/pitch) will issue a separate write of the eeprom . Premature killing off the limited write ability (ca. 100000 times if I remember it right from the datasheet) with every trim stickinput of the STM eeprom to shorten its' life can be a reason or simply mindless copying? Honestly I have just been using that stuff on orig. mwii, a strict horizontally calibrated harakiri copter will hang exactly that horizontal in the air - end of story. If the ambient temp. is dramatically off the calibration temperature you may have to recalibrate it on the flat ground outside.
Well, the "pt1" element off topic goes on. I very appreciate your input but I am simply too dumb for that KF filtering stuff, I know "harakiri" has aquired some popularity but I retreated from the forums (except this and trolling on diy drones) to keep it small and private again. From my perspective the quanton flight control has the best price performace ratio and will beat TC crap hardware in every point. I think TC hardware should be boycotted by any means where possible because his latest fail - "design" doesn't have open hardwareplans and that is strongly against my beliefs of where should open software should run on. Even shabby pixhawk has a complete hardwareplan online - it's simply rediculous that TC sits on his plans in fear of clones protecting his profit. For me he became just a money greedy guy (re-inventing SimonK on arduino esc - where is the 32 Bit there? No time/knowledge/insight to copy Autoquad esc? etc..) including his resellers - and I am pretty sure he would close up everything if he could - but he is still profiting by contributing guys - hopefully they get a good share, otherwise they are plainly stupid - I know I am awfully wrong but that is how I see it and my point of view is enough for me.
Concerning this:
brm wrote:this must be true love.
if debugging and testing is the process to remove bugs, then writing software
must be the process creating them
no time for testing and bug catching - we are up in the mountains.
happy new year to all ...
Thank you very much! I hope you have a lot of Hüttengaudi!
Happy Xmas and happy new year!
Cheers
Rob
Edit: Just assembled and tested my BMP085 copter - "SGTodaysSnapshotFilterRework" works much worse on BMP - *fixed* - will upload new repo later.
Edit,Edit: Uploaded + Fix stupid eepromwrites on Trim