Simulating Kalman Filter in XPlane

Hi,

 

I made a plugin for XPlane, so i can simulate my UAV code before i buy/make any hardware. Stabilisation, "pathfinding" works great but Im stuck with my AHRS. I implemented a basic Kalman Filter, which works great so far for estimating roll and yaw with gyros, accelerometers and GPS. 

However pich gives me some trouble. Altough William Premerlani wrote in his DCMDraft2 (page 24) that the forward Acceleration doesn't distort the result alot, it is the source of all my problems. 

I tried to correct it, by using the difference in airspeed. It worked somewhat, but I'm not sure how well this will work in reality.

 

What should i do to get the best result?
How much does the forward acceleration do in reality?

 

regards
Philipp

You need to be a member of diydrones to add comments!

Join diydrones

Replies are closed for this discussion.

Replies

  • Phillip,

    How do I get started writing autopilot code for X-Plane.

    What language do you use?  What are the best comprehensive or cohesive posts/tutorials on this?

    I want to be able to grasp the Algorithmic side before anything else.

     

    Thanks

     

    JR

     

This reply was deleted.

Activity