speedbird5 Posted October 21, 2019 Posted October 21, 2019 (edited) Hi, The Special for joystick commands for Master Arm do not allow toggling between Off and Arm and Simulate when used with a button. They toggle to the desired position but when you let the button go, the switch moves back to the starting position. Is there a way to toggle this switch between the three states so that it can be bound to a button ? thanks Edited October 21, 2019 by speedbird5
Davee Posted October 22, 2019 Posted October 22, 2019 Hi, The Special for joystick commands for Master Arm do not allow toggling between Off and Arm and Simulate when used with a button. They toggle to the desired position but when you let the button go, the switch moves back to the starting position. Is there a way to toggle this switch between the three states so that it can be bound to a button ? thanks Try this: { down = mmc_commands.MasterArmSw, up = mmc_commands.MasterArmSw, cockpit_device_id = devices.MMC, value_down = 1.0, value_up = -1.0, name =_('MASTER ARM DE Special On/Off'), category = {_('Special DE Instrument Panel')}},
speedbird5 Posted October 22, 2019 Author Posted October 22, 2019 (edited) I tried it, but it toggles between Simulate and Arm. What I need is a switch to toggle between the three states, that is, 1.0, 0.0 and -1.0 and there doesn't seem to be a function to do that Edited October 23, 2019 by speedbird5
Davee Posted October 24, 2019 Posted October 24, 2019 I tried it, but it toggles between Simulate and Arm. What I need is a switch to toggle between the three states, that is, 1.0, 0.0 and -1.0 and there doesn't seem to be a function to do that Ah, I misread that you were looking for three states. My bad.
Recommended Posts