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?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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