SEL and CTL buttons on CHRONOMETR
-
The two buttons increment two variables that hold the state of the chronometer. The SEL button increments
L:var_yokeChronoMode_L, while CTL incrementsL:var_yokeTimerMode_L. You will need these variables to wrap from 0-2, which is usually achieved with a modulo operator (percent sign). If your scripts are in RPN, they will look like this:(L:var_yokeChronoMode_L, number) 1 + 3 % (>L:var_yokeChronoMode_L, number) (L:var_yokeTimerMode_L, number) 1 + 3 % (>L:var_yokeTimerMode_L, number)I hope that helps! Let me know if you have any questions.
-
Yes, it worked, thank you very much for the quick response! I'm building a homemade Baron cockpit, and I always have trouble assigning buttons on my device in Baron. Could you tell me how I can find the required code and parameters for the script using MFS2020 and FSUIP7? I saw a table with Lvar and other values in the manual, but I don't understand how to use them. For example, I just copied your lines, ipc.execCalcCode("(L:var_yokeTimerMode_L, number) 1 + 3 % (>L:var_yokeTimerMode_L, number)") saved it as a LUA file, and assigned it to FSUIPS. Can I do this with any button? For example, the CWS button on the yoke—I can't find it in the commands... and what does it turn on and off? The CTR and SEL buttons work, but they don't visually click in the cockpit... Sorry for the many questions, but I doubt anyone else can help except you, as the author of this wonderful model.
![alt text] https://ru.files.fm/f/tdkjxcw8jc(image url)