Page 1 of 1

Battery Bus Switch LVAR/EventID

Posted: Sun Jul 19, 2020 12:17 am
by johnh
Hi All,
Thanks to Chris I have got almost everything I want to work off my Saitek Panels and FIP's. But for the life of me a cannot figure out how to assign a switch to the Bat Bus (EMER OFF/NORM).

Edit: also the Left/Right Ignition Switches if possible

Any clues?

Re: Battery Bus Switch LVAR/EventID

Posted: Mon Jul 20, 2020 1:38 pm
by ccmh15
The corresponding LVAR for the BAT BUS switch is called "B350i_BatteryMasterFake".
Value "1" -> "EMER OFF"
Value "0" -> "NORM"

For the Ignition and Engine Start switches, its "StarterLeft" and "StarterRight"
Value "1" -> "ON"
Value "0" -> "OFF"

Cheers,
Chris

Re: Battery Bus Switch LVAR/EventID

Posted: Tue Jul 21, 2020 11:18 am
by johnh
Thanks again Chris, silly questions like this are what you get when you should have gone to bed 10 - 12 hours earlier :oops:

Re: Battery Bus Switch LVAR/EventID

Posted: Tue Jul 21, 2020 2:51 pm
by ccmh15
Don't worry, sometimes it can be a real pain to find the correct variable or event name, I also did spend a few hours on this :lol:

I still didn't find a way to directly set the autopilot values, like Heading, Altitude, FLC Speed or Vertical Speed. I really would like to set those values directly, but so far I just managed to write a LUA script that is simulating the rotary increase/decrease actions until the values within the MVKA match my desired values. Not exactly nice, but at least it works...

Maybe you can help me out here in return ;)

Re: Battery Bus Switch LVAR/EventID

Posted: Tue Jul 21, 2020 8:46 pm
by johnh
I will try! I have PM'd you my setup for the Multi & Radio Panels. Had to PM as I could not attach PDF's here.

PS. Let me know if you don't receive my PM by tomorrow. II have been having issues with my PM's sometimes not going.

Re: Battery Bus Switch LVAR/EventID

Posted: Tue Jul 21, 2020 10:49 pm
by Slayer
I believe those gauges are C++. It may not be possible to get data from them. I will as Tomas if it can be done.

Re: Battery Bus Switch LVAR/EventID

Posted: Fri Jul 24, 2020 9:49 am
by johnh
Thanks Steve, would be great to know if it can be done.

Re: Battery Bus Switch LVAR/EventID

Posted: Fri Jul 24, 2020 10:04 am
by ccmh15
Reading the LVARs is possible without a problem. But for the mentioned autopilot values, it's obviously just not possible to write to them directly.

Reason I would need this: My hardware autopilot panel is calculating values for heading, speed and so on directly within the hardware, because this enables absolute lag free rotary encoder operation.

Right now, I have to constantly compare the actual values within the MVKA to the target values from my hardware, and have to use the VC rotary increase/decrease events until those values match.

Long story short - would be really helpful, to be able to directly write those AP LVARs.

Cheers!