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_elapsedTime
seconds
The current value of the elapsed timer.
L:var_kr87a_flightDuration
minutes
The current flight duration.
L:var_kr87a_antMode
bool
Whether ANT mode is active.
L:var_kr87a_bfoMode
bool
Whether BFO mode is active.
L:var_kr87a_multiMode
enum
0 = standby frequency, 1 = elapsed timer, 2 = flight timer
L:var_rnavUseChannel
number
The currently in-use RNAV channel.
L:var_rnavDisplayChannel
number
The currently displayed RNAV channel.
L:var_rnavNavigationMode
enum
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_flightDuration variable, 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!