AP_ALT_SEL_DEC Lvar not working correctly in spad.next
-
Using spad.next here but I don't think that's the problem.
On V1 I could use the lvar F28_Alt_Sel mapped to a rotary switch to increase/decrease my altitude.
In V2 that lvar no longer works and using the debug tool in dev mode on 2024 shows me the lvar is now called ap_alt_sel.
There is an ap_alt_sel_inc and ap_alt_sel_decSo using those 2 to increment/decrement respectively only works for the increment one.
Setting it to increment with a value of 100 correctly goes up by 100 feet when turning the knob.
The decrement one however misbehaves, as soon as I touch that one instead of decrementing the altitude it instantly jumps to 39900, I cannot decrement this value at all. Tried a few other settings even but no matter what, any action taken on that lvar just jumps the altitude to maximum.Also tried this on 2020 btw, same problem.
Also tried the ap_alt_sel lvar on its own, not the INC or DEC ones but that ones doesn't adjust things at all.
I can't imagine that I'm doing anything wrong here so maybe this is a bug?
-
Managed to get it working by checking the behaviour of the lvars when turning the knob.
Seems both INC and DEC actually stay on a value of zero on every turn but you can briefly see a 1 appear although it doesn't actually count upwards. The other values like ap_alt_sel_numbers are the ones increasing.
So setting both INC and DEC to increment by 1 works.Oddly enough I can set the INC to go up by 100 a the value stays 0, setting DEC to 100 and the value goes up by 100 and maxes out the alt, only a value of 1 works here.
Bottom line it works but the logic is a bit twisted here compared to how it behaved in v1.