Jump to content
Sign in to follow this  
Randolf

String vars from the sim?

Recommended Posts

Is there a way to access string variables from the simulator like ATC ID, ATC TYPE, etc. in AAO?

If I try (A:ATC ID, String) it seems to be a AAO local variable, consistent with the documentation.

Thank you.

Share this post


Link to post
Share on other sites

Ah, nvm, got it working, it was a different problem.
This seems to work fine:

(A:ATC·ID,·String)·(>L:AtcId,·String)·\n
(VOICEVOLUME:30)(SPEAK:@AtcId)·\n

 

Share this post


Link to post
Share on other sites

However, can I write these variables? In the SDK some of them are marked as settable, but code like this doesn't seem to work:

'TEST'·(>A:ATC·ID,·String)

 

Share this post


Link to post
Share on other sites
Posted (edited)
4 hours ago, Randolf said:

Ah, nvm, got it working, it was a different problem.

(VOICEVOLUME:30)·(A:ATC·ID,·String)·(SPEAK:your callsign is %s1)

SPEAK can be parametrized, please check the AAO manual, the spec about SPEAK

4 hours ago, Randolf said:

However, can I write these variables?

Not at the moment, sorry. The simulator String vars have a length parameter attached to them. It seemed to complicated if the user has to supply that too. I will look into it again, maybe something can be done in one of the next versions of AAO.

Edited by Lorby_SI

LORBY-SI

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