Hi,
I've searched this forum, but I might have missed the right question...
I've got the majestic Dash 8 Q400 and I'm building kind of a dashboard with switches and buttons.
The states of the pedestal pushbuttons is saved in L:PEDESTAL_PUSHBUTTONS
There are 9 pushbuttons which states are logged by adding powers of 2, for example "auto feather" is 128, MTOP is 4 and so on.
So the variable is 0 when no buttons are pushed, 128 with just autofeather and 132 with autofeather ans MTOP...
Now I need functions for my buttons so I can add and subtract those numbers from the variable.
How do I do that?
Is it possible with the built in functions?
Is there a way to increase/ decrease with a parameter? That would be the most elegant way I think. But as I understand "increase" only works "by one", the parameter setting the limit.
Do I need to create a LUA-script?
Thanks for the help, any pointers in the right direction are very appreciated!
Christian