Skip to content

Commit

Permalink
manoeuvre node tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkman committed Dec 6, 2015
1 parent 2e6b880 commit 46dd911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ddManoeuvreNode.ks
Expand Up @@ -7,6 +7,7 @@
run libDunaDirect.

local node is nextNode.
local originalVector to node:deltaV.
local topVector is ship:facing:topVector.

lock steering to lookdirup(node:deltaV, topVector).
Expand All @@ -16,7 +17,7 @@ wait until node:eta < estimatedBurnTimeWithDeltaV(node:deltaV:mag) / 2.
global burnPID to pidLoop(0.1, 0, 0, 0, 1).
lock throttle to burnPID:update(time:seconds, -node:deltaV:mag).

wait until node:deltaV:mag < 0.05.
wait until node:deltaV:mag < 0.1 or vdot(originalVector, node:deltaV) < 0.

unlock steering.
unlock throttle.
Expand Down

0 comments on commit 46dd911

Please sign in to comment.