@SkipperMacz I went ahead and changed my flap setup based on the idea you and @jmarkows were discussing. I tested it with power on and off and it is working really well.
UP now behaves like the real Commander switch. One tap latches it UP and the flaps continue retracting. Tap UP again and it returns to CENTER.
Flaps UP - On Press:
(L:var_FlapSwitchOverride, number) 1 == if{
2 (>L:var_FlapSwitchOverride, number)
}
els{
1 (>L:var_FlapSwitchOverride, number)
}
On Hold: blank
On Release: blank
DOWN is still momentary. I added a repeated continuous-flap command because using only the override caused the flap motor to pulse badly during the first part of extension.
Flaps DOWN - On Press:
3 (>L:var_FlapSwitchOverride, number)
(A:ELECTRICAL MAIN BUS VOLTAGE:5, volts) 6 >
(L:var_Breaker_FlapMotor_ReadOnly, bool)
and
if{
190 (>K:FLAPS_CONTINUOUS_INCR)
}
Flaps DOWN - On Hold:
(A:ELECTRICAL MAIN BUS VOLTAGE:5, volts) 6 >
(L:var_Breaker_FlapMotor_ReadOnly, bool)
and
if{
190 (>K:FLAPS_CONTINUOUS_INCR)
}
For the DOWN On Hold settings I am using:
Hold Delay: 100 ms
Repeat Delay: 100 ms
Flaps DOWN - On Release:
2 (>L:var_FlapSwitchOverride, number)
That got rid of the pulsing completely for me. DOWN now sounds and moves smoothly while held, then returns to CENTER when released. UP stays latched until I tap it again.
I have updated my Commander MobiFlight project with this setup as well. This should be the final update. I have moved all of the sections into their own tabs, so it might look a little different. You can find it here:
FredGarven's Mobiflight Projects