Telemachus

Telemachus

14.7k Downloads

Clarification: SAS Enabled Preclude movements?

jaredmoore opened this issue ยท 4 comments

commented

I'm currently working on an interface to KSP through Telemachus and experimenting with the movement commands (pitch, roll, yaw). It seems that if I toggle SAS on, I cannot control the ship through my code or through the web interface. When I turn off SAS however, I'm able to move the ship.

In game itself I can control the ship with SAS on though. Is this a bug, feature, or limitation of the KSP SDK itself?

Thanks and great work on this! I hope to be able to share my progress in the next month or so.

commented

@jaredmoore, I've had success enabling and disabling v.setFbW as needed. When I poll my joysticks, if they're centered, I enable it. Otherwise I disable it. This way I can control the craft when needed, but SAS automatically takes over when I have my hands off the stick.

commented

I seem to remember reading that there was new way of controlling craft as of version 0.90~ (I always expected this to happen, as the fly by wire method has been deprecated for as long as I can remember). So maybe this new mechanism will present a way around this SAS limitation and when I get some time, I'll overhaul the fly by wire code in Telemachus to use the new KSP API.

commented

As far as I can see it is a limitation of the KSP API, but equally it could be a limitation of my knowledge. I do check the Mechjeb and KOS source from time to time to see how they apply external control to craft, but last time I checked both of them suffered from this limitation.

I look forward to seeing your progress!

commented

Thanks for the quick reply. I think for now I can get away with toggling the SAS on/off between commands. Maybe I'll email Squad about the issue and see if they can comment on why it is that way. Maybe the game is actually toggling SAS while getting inputs as well.