- Wed May 16, 2007 1:36 pm
#30081
I'm going to stay out of the code for a while and just play with the simulator. I'm also working on a simple logger so I can get a few real-world data sets to play with (maybe next month), but I don't think there's much hope for it working in the real world until it can handle the noise-free data from the simulator.
Daniel Wee wrote:Thanks - so I take it that the code is not quite up to speed yet in that there is some work to be done on the accelerometer side of things.Yeah, don't expect to download this and have a working artificial horizon. It's not that there's a problem with reading either of the sensors, it just doesn't give them the right weights when combining them into an attitude estimate. It's also missing some other stuff you'd need in a real project. For example, there's no calibration routine (manual or automatic) for the accelerometer; its zeros are hard-coded. It's a nice starting point, but expect to have to do a bit of tweaking to get it to work.
On an earlier issue, the additional benefit of slapping on some active filtering (op-amps) is that you automatically buffer the sensor output (which is pretty high impedance as I understand it). This should, in theory, result in more accuracy.Right... you're going to need the op-amps in there anyway, if you can use them to do some filtering while you're at it, sounds like a good idea to me. I've just stuck with RC filters and simply buffering the outputs because analog scares me. I think I stand a better chance of getting the digital filtering right.
I wonder if Ghint's project does any better under acceleration. I guess I'll have to give it a try myself once my module comes in. Again, thanks for your inputs - let's keep this thread alive.I'd definitely give his a look. I don't know if his has flown yet or not, but I get the impression he's put a quite a few hours into getting it working and testing it.
I'm going to stay out of the code for a while and just play with the simulator. I'm also working on a simple logger so I can get a few real-world data sets to play with (maybe next month), but I don't think there's much hope for it working in the real world until it can handle the noise-free data from the simulator.