Stage#
Stage
A single stage of a vessel. Obtain activation (burn) stages from
Vessel.Stages / Vessel.StageAt, and decouple stages from
Vessel.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.InvalidOperationException because stock delta-v data does not apply. Thrust is reported in newtons and masses in kilograms (stock values are converted from kilonewtons and tonnes).
A Stage object is passed and returned as its identifier, a number. A path that acts on
an object takes it as (id).
- GET /space-center/stage/(id)/number#
The stage number (activation stage for burn stages, decouple stage otherwise).
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (int32)
- GET /space-center/stage/(id)/parts#
The parts that belong to this stage.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (list<SpaceCenter.Part>)
- POST /space-center/stage/(id)/resources#
Returns a
POST /space-center/stage/(id)/resourcesobject for this stage.- Parameters:
id – The identifier of the Stage object.
- Request JSON Object:
cumulative (bool) – 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. Optional, defaults totrue.
- Response JSON Object:
value (SpaceCenter.Resources)
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.
- GET /space-center/stage/(id)/delta-v#
Delta-v for this stage in the current situation, in \(\mathrm{m/s}\).
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
Note
Delta-v is only defined for activation stages (decouple is false).
Calling this on a decouple stage raises an error.
- GET /space-center/stage/(id)/vacuum-delta-v#
Vacuum delta-v for this stage, in \(\mathrm{m/s}\).
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/sea-level-delta-v#
Sea-level delta-v for this stage, in \(\mathrm{m/s}\).
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/thrust#
Thrust in the current situation, in newtons.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/vacuum-thrust#
Vacuum thrust, in newtons.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/sea-level-thrust#
Sea-level thrust, in newtons.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/twr#
Thrust-to-weight ratio in the current situation.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/vacuum-twr#
Vacuum thrust-to-weight ratio.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/sea-level-twr#
Sea-level thrust-to-weight ratio.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/specific-impulse#
Specific impulse in the current situation, in seconds.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/vacuum-specific-impulse#
Vacuum specific impulse, in seconds.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/sea-level-specific-impulse#
Sea-level specific impulse, in seconds.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/burn-time#
Burn time for this stage, in seconds.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/start-mass#
The mass of the vessel after the stage activates, in \(\mathrm{kg}\).
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/end-mass#
The mass of the vessel when the stage burns out, in \(\mathrm{kg}\).
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/dry-mass#
The dry mass of the vessel after the stage activates, in \(\mathrm{kg}\).
Note
Includes the parts of all later stages.
- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)
- GET /space-center/stage/(id)/fuel-mass#
The fuel mass of the vessel when the stage activates, in \(\mathrm{kg}\).
Note
Includes the fuel of all later stages, and the fuel left in the parts the stage decouples. The stage burns
GET /space-center/stage/(id)/start-massminusGET /space-center/stage/(id)/end-mass.- Parameters:
id – The identifier of the Stage object.
- Response JSON Object:
value (float)