Jump to content
Sign in to follow this  
Guest JeanLuc_

Gauge to set COM Freq on startup

Recommended Posts

Guest

I notice last week a gauge developer had released a cold and dark gauge. What this does is it shuts down the engines and electronics on startup at the gates. This lead me to think, wouldn't it be nice to have a simalar gauge to automatically set the COM and Nav freq to put the jetways and service trucks in place on startup for simflyers scenery by passsing in the freq as a parameter based on the aircraft. Unfortunatly my developer skills are limited to VB and Java for business systems. Do you guys have any thoughts on this or know of any developers that could do this?

Share this post


Link to post
Share on other sites
Guest Matthias Lieberecht

Hi>>I notice last week a gauge developer had released a cold and dark gauge.<

Share this post


Link to post
Share on other sites
Guest

Matthias,For all their airports, if Nav 1 and Nav 2 are set to 108.0 the service trucks will appear. To activate the jetways you would set Com 1 to be a vaule related to the type of aircraft being used; for example: Set Com 1 to 127.37 for a boeing 737, This is why I say in the panel.cfg you would refrence the gauge passing in the Com ferq.Example: gauge01=airport!jetway 127.37 gauge02=airport!service 108.0 // Used for both Nav'sThe Navs could be hard coded for 108.0, however if it happen to change in the future for other airports it might be nice to have to way to acommidate that.Regards,Bill

Share this post


Link to post
Share on other sites
Guest Matthias Lieberecht

Hi Bill,Unfortunately it's not possible to get the Aircraft type from the Aircraft.cfg to use it as a variable for the Gauge and to set the corresponding Com 1 frequency.If it would be always the same frequency like 108.0 for example this should be possible. You can set a specific frequency using the Com_Radio_Set (for Com1) or Nav1_Radio_Set (for Nav1) method. I haven't tried something yet so I do not know if the Gauge interpreted the code: 108.00 (>K:Nav1_Radio_Set) (similar code for Nav 2) as written but I hope so. I will try it and if it works it's also possible to include this Nav set into the Cold and Dark Cockpit Gauge so Nav1 and/or Nav2 will always be set to 108.00 when loading the Panel.Best RegardsMatthias

Share this post


Link to post
Share on other sites
Guest JeanLuc_

This sounds like a good idea and easy to do in C. More, with an external .ini file, you could set bouding box lat/lon with associated frequency pairs. This would allow to set your frequencies to a specific location if upon the location, you need to set different frequencies for toggling the airports effects on. Of course, a test has to be made to ensure it is only done at startup, and only once!Hope this helps!

Share this post


Link to post
Share on other sites
Guest

Matthias, >Unfortunately it's not possible to get the Aircraft type >from the Aircraft.cfg to use it as a variable for the Gauge >and to set the corresponding Com 1 frequency. Are you saying it is not possible to pass in the frequency for Com 1 as a parameter in the panel.cfg when refrencing the gauge as indicated in my examples above? I know this would leave it up to the user to key in the frequency when placing the gauge in the panel.cfg, however I don't think that would be much of a problem seeing that the user has to know the frequency for the aircraft anyways to dial it in at the gate and yes ideally it would be nice to get the aircraft type from the aircraft.cfg, however as you indicated this is not possible.Best regards,Bill

Share this post


Link to post
Share on other sites
Guest JeanLuc_

As far as I know, if not from direct memory peeking, FSUIPC provides such an information. Requires a C gauge though (no XML here).Hope this helps!

Share this post


Link to post
Share on other sites
Guest

JeanLuc_on,Do you have any examples you can seem me of a C gauge referencing FSUIPC? Although C is not my dominant language, I could fumble my way through it.Best Regards,Bill

Share this post


Link to post
Share on other sites
Guest JeanLuc_

Hi Bill,I've actually never tried to use FSUIPC in my gauges, but the FSUIPC SDK does provide some examples as well as the FSUIPC variables to look for in order to get the Aircraft Name / ATCID / ...Reading the FSUIPC SDK would be a good starting point anyhow.Hope this helps!

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