Page 1 of 1

Some help required: Programming

Posted: 10 Jun 2019, 18:28
by HondoFlyer
Hi,
I have previously posted a couple of questions and luckily by fiddling, managed to find a solution or work around.

This is what I have done so far to use a switch G7 in the TPM to actuate the A2A C172 Annunciator panel from DIM to BRT, but only if the Battery is ON

My setting below:
  • TPM G7: Switch UP (Conditional) > Set ANNUNCIATORPANELTESTSWITCH (LVAR) to 1
    The condition (Simconnect): ELECTRICAL MASTER BATTERY equals ON
  • TPM G7: Switch DOWN > Set ANNUNCIATORPANELTESTSWITCH (LVAR) to 0
Well, so far all works as one would expect, BUT I want to push the a/c switch all the way up to TST. It would be nice if by throwing the G7 switch UP that it would activate TST settling in the BRT position. Tried everything (I think) without success.

My solution so far was to assign T5 from the Pro Quadrant as the "temporary switch" to TST. It works, but not quite as I would like... Yes, I know...I should get a life! I did, I retired and now I spend ridiculous time messing around Flight Simulation - so, back to the crunch.
  • Quadrant T5: Button pressed > Set ANNUNCIATORPANELTESTSWITCH (LVAR) to 2
    Button Mode: "Repeat: triggered every 25ms until released"

    And it works great! BUT, me again, there is a better choice for the Button Mode, "Short: Triggered shortly and release within 500ms" which doesn't work at all. I would like to short press the button T5 once and get the same result as above.

    Is there anyone with a suggestion that does not require more than a few clicks in SpadneXt? Thank you for reading.

    :idea: ?

Re: Some help required: Programming

Posted: 11 Jun 2019, 16:00
by c0nnex
If all it needs is to set ANNUNCIATORPANELTESTSWITCH to 2 after is has been set to 1 you can just use a delay action.
Set ANNUNCIATORPANELTESTSWITCH (LVAR) to 1
Delay 500 ms
Set ANNUNCIATORPANELTESTSWITCH (LVAR) to 2

Re: Some help required: Programming

Posted: 14 Jun 2019, 14:33
by HondoFlyer
Hi c0nex,
Thank you for your response. Indeed, I had tried that setting too - it works, but not quite as I would like it.
My intention is to mimic the mouse actions, in other words, when battery is turn ON the DIM lights and the bottom row on the annunciator turn ON. When the switch is set further (mouse action) to BRT the same lights stay ON but brighter. Finally, when pushing the switch all the way up, and for as long as I keep it that way, the top row "L FUEL R (yellow) together with "PITCHTRIM" should flash ON.

Setting the commands our way it achieves all of the above with the exception of the "L FUEL R", which just do a sudden and short flash. Hence my query is: Is it possible to programme this event to stay ON for the same amount of time as "PITCHTRIM"?