Move rcs_estimated_burn_duration to lib/rcs.

This commit is contained in:
Casper V. Kristensen 2019-03-01 23:17:59 +01:00
parent a664626468
commit 18402b7084
Signed by: caspervk
GPG key ID: 289CA03790535054
2 changed files with 10 additions and 9 deletions

View file

@ -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.

View file

@ -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.