Jump to content
  • 0

Flight gear and Simulink


Question

Posted

I am working on a project using a Matlab/simulink 6 DOF aircraft model interfaced with Flightgear. I am having trouble with getting my model to land accuratly in Flight Gear. My model detects the ground but it does not correlate with the altitude in FLight Gear. Has anyone done landing and takeoff simulation using matlab/simulink and flight gear before?

2 answers to this question

Recommended Posts

  • 0
Posted

This would probably be a good question to send to the Flightgear-Devel mailing list, which is at [email protected]. I don't know what the problem is, but chances are one of the developers could help you.

  • 0
Guest jstevenson
Posted

The short answer is YES - I am using a Simulink model (using AeroSIM) to simulate a landing of an aircraft, and using FlightGear to visualize. I too noticed the descrepancy in FlightGear versus the altitude I saw in AeroSIM/Matlab. Here's the scoop:The thing called "altitude" in AeroSIM is the altitude based on the EGS96 "ellipsoid earth model". For the area of the world where I was flying (around Clarenville, Newfoundland) I found that this was approximately -8m off (i.e. too low) the altitude above Mean Sea level, which I understand is based on the WGS84 Earth model. I found this later altitude to match perfectly with what FlightGear is also using for it's ground terrain mesh. I've switched over to using MSL in my AeroSIM model to match up with FG, so at least my aircraft "looks" like it's actually sitting on the ground!BTW - you can monitor the internal FG variable called /position/ground-elev-m[0] which you'll see matches the MSL variable in AeroSIM (or any other WGS84-based aeorsim) very well.I'm currently inverstigating if there is a way to send FG variable information BACK to MATLAB. There's got to be a way!-Jon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...