Jump to content
Sign in to follow this  
ddawson

PANEL_SERVICE_ for C gauges

Recommended Posts

Ok, got a question to anyone who can help.In gauges.h are several defines that start with PANEL_SERVICE_. They are passed as a 'service_id' to the main gauge callback function. Does anyone have information that provides better insight into each value and what they represent?


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

I did a little research into that a while ago. Essentially, I created a gauge that counted every instance of every one of the PANEL_SERVICE_ events. Outputted the results to a plain text file.I have attached the subject gauge, along with the .c file which contains the important part of the source code. The archive also includes a handful of sample outputs, which may give you what you are looking for without the need of installing the gauge on a panel and running the thing.By way of explanation, in the text files, the number to the left of the 'equals' sign is nothing more than a counter. The number to the right is the number assigned to the given service id. This number is incremented by 100 if the pgauge->parameters pointer has a non-NULL value.DougEdit - if you do want to work with the gauge, the output file will be in your main FS folder.dsd

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