Move rcs_estimated_burn_duration to lib/rcs.
This commit is contained in:
parent
a664626468
commit
18402b7084
|
@ -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.
|
||||
|
|
10
lib/rcs.ks
10
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.
|
||||
|
|
Loading…
Reference in a new issue