The A2A Simulations Community

"Come share your passion for flight"
It is currently Thu Jul 27, 2017 1:36 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Astrotech Clock lvars
PostPosted: Sat Jul 30, 2016 6:29 am 
Offline
Airman Basic

Joined: Tue Jan 05, 2016 1:09 pm
Posts: 1
Looking at the variable list pdf for the Cherokee, I don't see entries for the three buttons of the clock/timer.

Is it possible to assign controls to these?


Top
 Profile  
 
PostPosted: Sun Jul 31, 2016 4:17 am 
Offline
Chief Master Sergeant
User avatar

Joined: Fri Jun 06, 2014 1:06 pm
Posts: 4595
Yeah, looks like the variables for the clock buttons were left off the list of most useful L:Vars but seems they're as follows:

L:ClockLc2LeftSwitch
L:ClockLc2MiddleSwitch
L:ClockLc2RightSwitch

They're Boolean and should be SET to 1 on press and SET back to 0 on release.

Cheers,
Nick


Top
 Profile  
 
PostPosted: Mon Jul 10, 2017 8:57 am 
Offline
Airman

Joined: Fri Jun 13, 2014 3:13 pm
Posts: 44
Old topic, I know, but I am trying to write a Lua script (via FSUIPC4) to control the clock and am having a problem accessing the Lvar ClockLc2Mode which is a boolean value that, I believe, toggles each time the clock mode button is pushed. I can't seem to read or write to this Lvar as I would expect. For example, initial attempts to determine the clock mode by reading the value of ClockLc2Mode returns a nil value. Any information on the use of ClockLc2Mode appreciated.
Thx,
Al


Top
 Profile  
 
PostPosted: Wed Jul 12, 2017 3:06 pm 
Offline
Airman

Joined: Fri Jun 13, 2014 3:13 pm
Posts: 44
To close the loop on the above, it turns out the Lvar (L:ClockLc2Mode, bool) is inside a mouse event and therefore is not available to a lua script until it is invoked at least once either by the mouse (such as by hovering over or clicking the clock Mode button), or by using (L:ClockLc2Mode, bool) inside an xml file <Update> section.

Al


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group