L-vars for KR87 and KNS81
-
Hi @Black-Square,
I'm working on some external instrument displays (using Air Manager) for the Bonanza and saw the other recent post about adding L-vars for the KAS297B. I was wondering if it would be possible to similarly add some variables for the KNS81 RNAV and KR87 ADF units in order to support external displays.
I've prototyped minor changes to add these variables:
Variable Type Description L:var_kr87a_elapsedTimeseconds The current value of the elapsed timer. L:var_kr87a_flightDurationminutes The current flight duration. L:var_kr87a_antModebool Whether ANT mode is active. L:var_kr87a_bfoModebool Whether BFO mode is active. L:var_kr87a_multiModeenum 0 = standby frequency, 1 = elapsed timer, 2 = flight timer L:var_rnavUseChannelnumber The currently in-use RNAV channel. L:var_rnavDisplayChannelnumber The currently displayed RNAV channel. L:var_rnavNavigationModeenum 0 = VOR, 1 = VOR/PAR, 2 = RNV, 3 = RNV/APR Together with the existing variables, these are sufficient to replicate the display state of the virtual cockpit's units on an external display. I'm not completely convinced about the addition of the
L:var_kr87a_flightDurationvariable, but the corresponding game variable is not accessible to SimConnect clients as far as I can tell, and I haven't been able to find an alternative that matches the value displayed on the KR87.I can provide the JS files (or diffs thereof) if you are at all interested in incorporating these changes.
Thanks in advance for your time, and for the fantastic aircraft add-on!