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

Use of RCS for node.ks leads to inaccurate burns #44

Open
hany opened this issue Apr 27, 2020 · 1 comment
Open

Use of RCS for node.ks leads to inaccurate burns #44

hany opened this issue Apr 27, 2020 · 1 comment

Comments

@hany
Copy link

hany commented Apr 27, 2020

Hi there,

It seems as though this code block:

kos-ramp/ramp/node.ks

Lines 59 to 67 in b25f112

until utilIsShipFacing(steerDir, node_bestFacing, 0.5) or
nn:eta <= dt and utilIsShipFacing(steerDir, node_okFacing, 5) or
ship:angularvel:mag < 0.0001 and rcs = true
{
if ship:angularvel:mag < 0.01 rcs on.
stagingCheck().
if not warped { set warped to true. physWarp(1). }
wait 0.
}

Is leading to some inaccurate burns. For example, when running transfer.ks to go from Kerbin to Minmus, during the execution of node_hoh.ks and node.ks, while the ship is being rotated and RCS is being used, the current orbit’s eccentricity (along with current Ap and Pe) is shifted (slightly). This results in the transfer missing the encounter as the Hohmann transfer was calculated with the previous orbit. Without RCS, the current orbit remains undisturbed and accurate burns are achieved.

Some thoughts on this:

  1. Remove the use of RCS to rotating/alignment (or make it optional?).
  2. Recalculate node once adjustment is made.
@astappiev
Copy link
Collaborator

astappiev commented May 2, 2020

Try now, if a ship can rotate without RCS, they will not be enabled anymore.

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