From 18402b7084a0d53152bb1f2590f9feb8fdf08077 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Fri, 1 Mar 2019 23:17:59 +0100 Subject: [PATCH] Move rcs_estimated_burn_duration to lib/rcs. --- lib/node.ks | 9 --------- lib/rcs.ks | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/node.ks b/lib/node.ks index f6cc24f..d721fd9 100644 --- a/lib/node.ks +++ b/lib/node.ks @@ -24,15 +24,6 @@ function estimated_burn_duration { } -function estimated_rcs_burn_duration { - // - // Calculate estimated burn duration of a vector or node using RCS thrusters instead of main engines. - // - parameter burn. - return estimated_burn_duration(burn, rcs_isp_sum(), rcs_maxthrust()). -} - - function vector_to_node { // // Convert given vector to a maneuver node, optionally at the given time. diff --git a/lib/rcs.ks b/lib/rcs.ks index 27a2c7c..9260ba8 100644 --- a/lib/rcs.ks +++ b/lib/rcs.ks @@ -1,5 +1,6 @@ @LAZYGLOBAL off. +run once "lib/node". run once "lib/target". run once "lib/vectors". @@ -39,6 +40,15 @@ function rcs_maxthrust { } +function rcs_estimated_burn_duration { + // + // Calculate estimated burn duration of a vector or node using RCS thrusters instead of main engines. + // + parameter burn. + return estimated_burn_duration(burn, rcs_isp_sum(), rcs_maxthrust()). +} + + function rcs_translate { // // Translate the ship's position by the given vector using RCS thrusters.