Started this discussion. Last reply by William Premerlani Jan 25. 12 Replies 0 Likes
Started this discussion. Last reply by Lew Payne May 3, 2010. 6 Replies 0 Likes
Started this discussion. Last reply by Navigator Jan 24. 6 Replies 0 Likes
Navigator replied to Mathias's discussion Magnetometer math
Navigator replied to Mathias's discussion Magnetometer math
Navigator replied to Mathias's discussion Propeller DCM code
Navigator replied to Mathias's discussion Propeller DCM code
Jay Kickliter said…
Mathias said…
Jay Kickliter said…
Jason Dorie said… I realize I'm kinda late to the party, but I've posted a first draft of DCM code on the Prop, coded mostly for readability. I'm giving some semi-serious thought to implementing it in PASM instead of Spin, but I'm going to time it first to see if it's really necessary. At present it runs at 200hz without problems. I've posted code for it over at the Parallax forums, along with a C# visualization app that includes an implementation on the PC side to make it easier to debug. Thought it might be useful for you guys if you're not already light years ahead of me. :)
Jason Dorie said… Thanks, Mathias - The code would be great. I haven't decided exactly what I'm going to do yet, though I'm shooting for "augmented flight", not autonomous. The previous version was very stable, but couldn't self-level, which I think is all I'm going for at the moment. I want to be able to park it nice & high and be confident that if I lose orientation that I can just let go of the controls and have it level itself.
The current code is really simple, but I was hoping to produce something clean enough for others to use as a starting point.
Something else in that code that might be of use to you is the reader for the ITG-3200 and ADXL345 - It's all PASM on a single cog, does temperature drift compensation for the gyro, and there's a decent amount of room to spare. I was thinking of trying to put the entire DCM estimator in the same cog, though I'm not sure if it's going to be small enough.
I'll have to have a look at FlightGear - I never really considered trying the algorithm inside a sim. So far it's been more "fire it up and hope it works" after a decent amount of testing on the ground. :)
Season Two of the Trust Time Trial (T3) Contest has now begun. The third round was a reliablilty/aerial photography round for both planes and copters, which is now closed. Stay tuned for the next round, beginning soon.116 members
108 members
57 members
29 members
95 members
© 2012 Created by Chris Anderson.
