Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F-16 F-16C_50/ANTI_SKID_SW logic error when changing states #490

Open
spec10 opened this issue Nov 6, 2023 · 2 comments
Open

F-16 F-16C_50/ANTI_SKID_SW logic error when changing states #490

spec10 opened this issue Nov 6, 2023 · 2 comments

Comments

@spec10
Copy link

spec10 commented Nov 6, 2023

It seems like something's wrong with ANTI_SKID_SW. If you switch it to position 2 (Parking Brake) and then send 0 (off) it will move to 1 (Anti-Skid). Reproducable in bort.

@jdahlblom
Copy link
Contributor

If I have it in Parking (2) and click with the mouse to move it it moves to Anti Skid (1), if I click again it goes to Off (0). I can only see that dcs-bios is following that behavior. I am using ctrlref.exe, not BORT.
This is one of the types of controls that have 2 different commands so it is not that straightforward manipulating it.

		if toState == "0" then --downSwitch
			dev:performClickableAction(down_switch, 0)
			dev:performClickableAction(up_switch, 0)
			dev:performClickableAction(down_switch, -1)
		elseif toState == "1" then --Stop
			dev:performClickableAction(down_switch, 0)
			dev:performClickableAction(up_switch, 0)
		elseif toState == "2" then --upSwitch
			dev:performClickableAction(down_switch, 0)
			dev:performClickableAction(up_switch, 0)
			dev:performClickableAction(up_switch, 1)
		end

There you can see that there are the commands up_switch and down_switch.

@charliefoxtwo
Copy link
Member

I believe the issue is regarding having the switch in parking and then sending set_state 0, which should move it immediately to off, but it sounds like it goes to the middle position instead.

Controls like these can be tough to get right. Sometimes the module just doesn't play nice - it's pretty annoying. Unfortunately I don't have the F-16 so I'm not able to experiment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants