Jump to content
Sign in to follow this  
Guest bartels

Reading the leading edge slats in C gauges

Recommended Posts

I'd like to read the FS variable that corresponds to the leading edge slats in a C gauge. Does anyone know how to do this?FLAPS_POS_LEFT/RIGHT or TRAILING_EDGE_FLAPS0_LEFT_ANGLE give only information about the trailing edge flaps, not about the slats.In XML, I noticed the following parameters exist:LEADING EDGE FLAPS LEFT PERCENTLEADING EDGE FLAPS LEFT ANGLEBut I don't know how to read these parameters in a C gauge.Does anyone know how to do this?ThanksEric

Share this post


Link to post
Share on other sites
Guest Fabio Miguez

Hey Eric,No direct way that I know of, like in XML, but if you program the flaps yourself, you should know when the slats start extending (most likely 0) and at what percentage of full flaps they get extended fully, so it is just a matter of reading FLAPS_POS_LEFT/RIGHT and calculating the percentage of slat extension.Did you get my e-mail? I had answered your original one, got your second one today, and answered again, seems like you never got my first response.Best regards,

Share this post


Link to post
Share on other sites
Guest bartels

Since FS9 C-gauges allow XML code execution it should be possible.E.g.FLOAT64 slats_pos;...execute_calculator_code("(A:LEADING EDGE FLAPS LEFT PERCENT,percent)",&slats_pos,NULL,NULL);...execute_calculator_code("(A:LEADING EDGE FLAPS RIGHT PERCENT,percent)",&slats_pos,NULL,NULL);Arne Bartels

Share this post


Link to post
Share on other sites

Thanks for your help !!It works great and I was able to read the leading edge slat value, just perfect. By the way, it is very useful to read other variables that are not available in C, such as ATC id, pushback status, etc...Eric

Share this post


Link to post
Share on other sites
Guest bartels

Not sure about ATC ID , I wasn't able to read it with execute_calculator_code yet.Arne Bartels

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • 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...