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

ship:control:mainthrottle doesn't work unless some other raw control is set [BUG] #3101

Open
nuggreat opened this issue Feb 24, 2024 · 0 comments
Milestone

Comments

@nuggreat
Copy link

The raw control :MAINTHROTTLE does not appear to take control of the craft controls once set unless some other raw control is also set, that being the case the :MAINTHROTTLE then controls the throttle as you would expect. Of note :NEUTRALIZE only becomes false once some other control is set and not when :MAINTHROTTLE is set.

Below is the test case I cooked up

CLEARSCREEN.
LOCAL sc to SHIP:CONTROL.
SET sc:PILOTMAINTHROTTLE TO 0.5.
PRINT "MAINTHROTTLE set to 1".
SET sc:MAINTHROTTLE TO 1.//throttle should move here
WAIT 1.
PRINT "should be false is: " + sc:NEUTRALIZE.//should be false, is true
WAIT 1.
PRINT "MAINTHROTTLE set to 0.0001 and YAW set to 1".
SET sc:YAW TO 1.
SET sc:MAINTHROTTLE TO 0.0001.//throttle does move here
WAIT 1.
PRINT "should be false is: " + sc:NEUTRALIZE.//should be false, is false
WAIT 1.
PRINT "MAINTHROTTLE set to 1".
SET sc:MAINTHROTTLE TO 1.//throttle does move here
WAIT 1.

SET sc:NEUTRALIZE TO TRUE.
PRINT "releasing controls".
WAIT 1.

PRINT "MAINTHROTTLE set to 1".
SET sc:MAINTHROTTLE TO 1.//throttle should move here
WAIT 1.
PRINT "should be false is: " + sc:NEUTRALIZE.//should be false, is true
WAIT 1.
PRINT "YAW set to 1".
SET sc:YAW TO 1.//throttle does move here
WAIT 1.
PRINT "should be false is: " + sc:NEUTRALIZE.//should be false, is false
WAIT 1.

SET sc:NEUTRALIZE TO TRUE.
PRINT "releasing controls".
@JonnyOThan JonnyOThan added this to the 1.5.0.0 milestone Aug 4, 2024
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

2 participants