Comments (3)
This is something I tried to fix in 0.6 by putting the part of mechjeb back in that accounts for slowing down when approaching the target. It did fix the problem for orbital craft but then caused a catastrophic understeering during launches.
from kos.
Ok, so I took a closer look at the code and the way this is implemented in MechJeb for Comparison. After that I first thought it might be a problem with the missing PID Controller in the kOS Code, but after some more testing I believe it is actually some kind of bug in KSP itself.
The reason to believe so is that I put a small probe into orbit using Hyperedit and then directly locked the steering. This works fine just as you would expect it too, so currently I'm assuming that the code in kOS works as intended. However I believe that after loading from the Mission Center KSP for some reason reports other values for ship mass etc. I'd like to test that out next.
Simple question here, as I have not yet done any KSP plugin development, is it possible to run the dll in a debugger somehow? Or do I need to make print debugging?
from kos.
Ok, so I did a lot of debugging and testing of the current situation. What I've found is that it is not actually the reported values (MoI, rotation etc) that are behaving differently, but the FlightControlState. Once you are up in orbit and reload the game, the input for some reason has different results.
You can even try that out manually if you like: Put a small probe in orbit using HyperEdit, then immediately save before doing anything else. Usually your craft should then be oriented so that yawing follow exactly one of the lines on the navball, e.g. the 90° line from the north pole to the south pole. If you then reload the game and try to do the same maneuver, it will actually divert from this line and move on a slightly different path, but not directly across the line.
So I'm not sure if this is a bug in KSP or not, but anyway I think it's the reason why steering is not working after reload.
However given that MechJeb is in fact working all the time, I'm going to have another look at the code and try to find out where the differences are and add them to kOS if at all possible.
from kos.
Related Issues (20)
- No way to read current nodeless encounter. HOT 1
- Could there be a way to read "Closest Approach"? HOT 4
- UNTIL will break at first chance. HOT 4
- v0.9.2 INLIGHT returns false negatives. HOT 1
- v0.9.2 kOS doesn't detect the reference transform has changed when the ship splits. HOT 4
- v0.9.2 alt:radar returns altitude when "too high" HOT 6
- Add page up + down to console editor
- if (encounter == encounter) { ... }. // can't compare orbitinfo to orbitinfo ... HOT 2
- Not working scripts HOT 4
- [Suggestion] Add ability to change max throttle of engines HOT 6
- Custom filetype HOT 5
- Prograde angles wrong below 70,000M on Kerbin. HOT 9
- Can't focus on kOS Terminal HOT 4
- Some kind of autoexec [enhancement] HOT 2
- Request: ISO-8601 time format HOT 1
- LIST FILES IN var. Does not work. HOT 3
- SHIP:FACING:PITCH supplying wrong values HOT 1
- setting node:eta does not do anything
- Terminal won't open HOT 1
- Add tab to KSC
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kos.