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

SAS overrides kOS raw input. #1562

Open
allmhuran opened this issue Mar 24, 2016 · 3 comments
Open

SAS overrides kOS raw input. #1562

allmhuran opened this issue Mar 24, 2016 · 3 comments
Assignees
Labels
bug Weird outcome is probably not what the mod programmer expected. documentation Change the Sphinx user documents.

Comments

@allmhuran
Copy link

As things stand right now, raw input will have no effect on a craft if SAS is on.

This does not behave the same way as user input through a controller. When user input is provided, SAS disengages itself on the axis (or axes) receving user input, but stays enabled on axes where no user input is provided. In this way a user can still steer a ship with SAS on, while SAS maintains stability on the axes without user input.

The suggestion would be to either update the raw controls page on the doc site to reflect that this is the case, or alter the implementation so raw control does in fact act like pilot input.

The raw control page (http://ksp-kos.github.io/KOS_DOC/commands/flight/raw.html?highlight=raw%20control) currently states that control:yaw will (for example) "start pushing the ship to rotate a bit faster to the right, like pushing the D key".

Here is a quick gfy demonstration http://gfycat.com/ImportantDeadlyBushbaby

@hvacengi hvacengi added bug Weird outcome is probably not what the mod programmer expected. documentation Change the Sphinx user documents. labels Mar 24, 2016
@hvacengi
Copy link
Member

I've looked into this a little bit. It looks like we may be able to use a OnPostAutopilotUpdate event to update the flight controls. I haven't tested yet, but I'll add it to my list of modifications to be made with other steering updates I'm doing (see PR #1544). The entire system that manages vessel controls is going to be updated, including new event dispatching, so this would fit into that update nicely.

@hvacengi hvacengi self-assigned this Mar 25, 2016
@hvacengi hvacengi added this to the v1.0.0 milestone Mar 25, 2016
@hvacengi hvacengi modified the milestones: v1.0.0, v1.0.1 Jun 29, 2016
@GER-Space
Copy link
Contributor

I tested it to replace all instances of OnPreAutopilotUpdate with OnPostAutopilotUpdate and it fixed the issue and I saw no more fighting of the steering_manager with SAS activated.
Should I create a Pull Request for it?

@hvacengi
Copy link
Member

I had forgotten that this issue was in the queue of things that need to be fixed. I would rather not simply make a blanket replacement to use OnPostAutopilotUpdate on two counts: 1) in my connectivity update PR the method for subscribing to autopilot events changes, making it harder to simply swap out the event. 2) Changing all instances of this will cause lock steering which works with SAS to be one tick behind. That may be fine, I'm not sure. But no matter how we slice it, it should be addressed using our new subscription model. Perhaps I'll simply add a 2nd event subscription method, one for pre and one for post.

@hvacengi hvacengi modified the milestones: v1.0.2, v1.0.1 Oct 31, 2016
@hvacengi hvacengi modified the milestones: v1.0.2, v1.0.3 Dec 6, 2016
@hvacengi hvacengi modified the milestones: v1.1.0, v1.1.1 (temp) May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Weird outcome is probably not what the mod programmer expected. documentation Change the Sphinx user documents.
Projects
None yet
Development

No branches or pull requests

3 participants