Service#
This service provides the flight readouts of Kerbal Engineer Redux.
Note
The flight readouts are for the active vessel only. A procedure that needs the vessel simulation waits for a result that started after the vessel last changed: a switch, a stage or a change in its parts. Other changes, such as shutting down an engine, show in the next result.
- KerbalEngineerRedux.getAvailable()#
Whether Kerbal Engineer Redux is available.
- Property:
Read-only, cannot be set
- Return type:
boolean
- KerbalEngineerRedux.impact(vessel)#
The impact of the vessel with the terrain, or
nullif its orbit does not meet the terrain. Throws an exception if the vessel is not the active vessel.- Arguments:
vessel (
SpaceCenter.Vessel) – The active vessel.
- Return type:
KerbalEngineerRedux.Impactornull- Game Scenes:
Flight
- KerbalEngineerRedux.suicideBurn(vessel)#
The suicide burn that stops the vessel at the terrain, or
nullif its orbit does not meet the terrain or its thrust cannot overcome gravity. Throws an exception if the vessel is not the active vessel.- Arguments:
vessel (
SpaceCenter.Vessel) – The active vessel.
- Return type:
KerbalEngineerRedux.SuicideBurnornull- Game Scenes:
Flight
- KerbalEngineerRedux.stages(vessel)#
The stages of the vessel, lowest stage number first. Throws an exception if the vessel is not the active vessel.
- Arguments:
vessel (
SpaceCenter.Vessel) – The active vessel.
- Return type:
ArrayofKerbalEngineerRedux.Stage- Game Scenes:
Flight
Note
The last is the current stage. The thrust and thrust-to-weight ratios are for the pressure and gravity at the vessel’s altitude.
- KerbalEngineerRedux.editorStages(body[, altitude[, mach]])#
The stages of the vessel in the editor, lowest stage number first.
- Arguments:
body (
SpaceCenter.CelestialBody) – The body to launch from.altitude (
number) – The altitude for the atmospheric pressure, in meters. Defaults to0.0.mach (
number) – The Mach number, for engines whose thrust depends on it. Defaults to0.0.
- Return type:
ArrayofKerbalEngineerRedux.Stage- Game Scenes:
Editor Vab, Editor Sph
Note
The last is the first stage to activate, and the list is empty when the editor has no vessel. The thrust-to-weight ratios are for the gravity at the body’s surface. The masses leave out the crew.
- KerbalEngineerRedux.burnTime(vessel, deltaV)#
The time to burn a delta-v, or
nullif the vessel has too little delta-v. Throws an exception if the vessel is not the active vessel.- Arguments:
vessel (
SpaceCenter.Vessel) – The active vessel.deltaV (
number) – The delta-v, in \(\mathrm{m/s}\).
- Return type:
KerbalEngineerRedux.BurnTimeornull- Game Scenes:
Flight
- KerbalEngineerRedux.rendezvous(vessel)#
The transfer to the vessel’s target, or
nullif it has no target, or the target is the body it orbits. Throws an exception if the vessel is not the active vessel.- Arguments:
vessel (
SpaceCenter.Vessel) – The active vessel.
- Return type:
KerbalEngineerRedux.Rendezvousornull- Game Scenes:
Flight