Stage#
- class SpaceCenter.Stage#
A single stage of a vessel. Obtain activation (burn) stages from
Vessel.Stages/Vessel.StageAt, and decouple stages fromVessel.DecoupleStages/Vessel.DecoupleStageAt.Note
Delta-v, thrust, TWR, specific impulse, burn time and mass members are only available on activation stages. On decouple stages those members throw
KRPC.InvalidOperationExceptionbecause stock delta-v data does not apply. Thrust is reported in newtons and masses in kilograms (stock values are converted from kilonewtons and tonnes).-
number:
number# The stage number (activation stage for burn stages, decouple stage otherwise).
- Attribute:
Read-only, cannot be set
-
parts:
List# The parts that belong to this stage.
- Attribute:
Read-only, cannot be set
-
resources(
cumulative?:boolean):SpaceCenter.Resources# Returns a
SpaceCenter.Stage:resources()object for this stage.- Parameters:
cumulative – When
False, only resources assigned to this stage. WhenTrue, resources for this stage and all later activation or decouple stage numbers are included. On activation stages, unstaged resource containers (for example fuel tanks) are grouped with the first higher activation stage before they are detached. Defaults totrue.
Note
This is an RPC method: call
resources()(optionalcumulativeargument). For activation stages, unstaged resource containers (for example fuel tanks) are grouped with the first higher activation stage before they detach, matching the C#Resources()documentation.
-
delta_v:
number# Delta-v for this stage in the current situation, in \(\mathrm{m/s}\).
- Attribute:
Read-only, cannot be set
Note
Delta-v is only defined for activation stages (
decoupleisfalse). Calling this on a decouple stage raises an error.
-
vacuum_delta_v:
number# Vacuum delta-v for this stage, in \(\mathrm{m/s}\).
- Attribute:
Read-only, cannot be set
-
sea_level_delta_v:
number# Sea-level delta-v for this stage, in \(\mathrm{m/s}\).
- Attribute:
Read-only, cannot be set
-
specific_impulse:
number# Specific impulse in the current situation, in seconds.
- Attribute:
Read-only, cannot be set
-
vacuum_specific_impulse:
number# Vacuum specific impulse, in seconds.
- Attribute:
Read-only, cannot be set
-
sea_level_specific_impulse:
number# Sea-level specific impulse, in seconds.
- Attribute:
Read-only, cannot be set
-
start_mass:
number# The mass of the vessel after the stage activates, in \(\mathrm{kg}\).
- Attribute:
Read-only, cannot be set
-
end_mass:
number# The mass of the vessel when the stage burns out, in \(\mathrm{kg}\).
- Attribute:
Read-only, cannot be set
-
dry_mass:
number# The dry mass of the vessel after the stage activates, in \(\mathrm{kg}\).
- Attribute:
Read-only, cannot be set
Note
Includes the parts of all later stages.
-
fuel_mass:
number# The fuel mass of the vessel when the stage activates, in \(\mathrm{kg}\).
- Attribute:
Read-only, cannot be set
Note
Includes the fuel of all later stages, and the fuel left in the parts the stage decouples. The stage burns
SpaceCenter.Stage.start_massminusSpaceCenter.Stage.end_mass.
-
number: