AscentGuidance#

class AscentGuidance#

The Ascent Guidance window, which flies the vessel to orbit.

Note

See the MechJeb wiki for how to set up this autopilot.

bool Enabled { get; set; }#

Whether the module is enabled.

Game Scenes:

Flight

string Status { get; }#

The autopilot status, which depends on the selected ascent type.

Game Scenes:

Flight

AscentType AscentType { get; set; }#

The ascent type.

Game Scenes:

Flight

Note

Setting it disengages the autopilot of the other type.

AscentSettings Settings { get; }#

The Ascent Settings window.

Game Scenes:

Flight

PSGSettings PSGSettings { get; }#

The settings of the AscentType.PSG ascent, from the Ascent Settings window and the PSG Stages window.

Game Scenes:

Flight

ClassicPath ClassicPath { get; }#

The Ascent Path Editor window, with the settings of the AscentType.Classic ascent.

Game Scenes:

Flight

double DesiredOrbitAltitude { get; set; }#

The altitude of the final circular orbit, in meters.

Game Scenes:

Flight

Note

Applies to the AscentType.Classic ascent.

double DesiredInclination { get; set; }#

The inclination of the final orbit, in degrees.

Game Scenes:

Flight

double PeriapsisAltitude { get; set; }#

The altitude of the periapsis of the target orbit, in meters.

Game Scenes:

Flight

Note

Applies to the AscentType.PSG ascent.

double ApoapsisAltitude { get; set; }#

The altitude of the apoapsis of the target orbit, in meters.

Game Scenes:

Flight

Note

Applies to the AscentType.PSG ascent. A value below AscentGuidance.PeriapsisAltitude, such as 0, gives a circular orbit, and a negative value a hyperbolic one.

bool BurnoutAltitudeFlag { get; set; }#

Whether to reach the target orbit at AscentGuidance.BurnoutAltitude.

Game Scenes:

Flight

Note

Applies to the AscentType.PSG ascent. When every stage has a fixed burn time, the ascent always burns out at AscentGuidance.BurnoutAltitude.

double BurnoutAltitude { get; set; }#

The altitude at which the ascent reaches the target orbit, in meters. MechJeb’s window calls it the attach altitude.

Game Scenes:

Flight

Note

Applies to the AscentType.PSG ascent. See AscentGuidance.BurnoutAltitudeFlag.

double FlightPathAngle { get; set; }#

The flight path angle at burnout, in degrees.

Game Scenes:

Flight

Note

Applies to the AscentType.PSG ascent, when every stage has a fixed burn time.

bool ArgumentOfPeriapsisFlag { get; set; }#

Whether to aim for AscentGuidance.ArgumentOfPeriapsis.

Game Scenes:

Flight

Note

Applies to the AscentType.PSG ascent.

double ArgumentOfPeriapsis { get; set; }#

The argument of periapsis of the target orbit, in degrees.

Game Scenes:

Flight

Note

Applies to the AscentType.PSG ascent. Requires AscentGuidance.ArgumentOfPeriapsisFlag.

double DesiredLan { get; set; }#

The longitude of the ascending node of a launch to a LAN, in degrees. See AscentGuidance.LaunchToLan.

Game Scenes:

Flight

double LaunchLANDifference { get; set; }#

The difference from the target’s longitude of the ascending node of a launch into the target’s plane, in degrees.

Game Scenes:

Flight

bool OverrideWarpToPlane { get; set; }#

Whether a timed launch launches at once, rather than at the time it computes.

Game Scenes:

Flight

int WarpCountDown { get; set; }#

The time before a timed launch at which time warp stops, in seconds.

Game Scenes:

Flight

AscentLaunchMode LaunchMode { get; }#

The launch mode, which gives whether a timed launch is counting down.

Game Scenes:

Flight

double TimeToLaunch { get; }#

The time until a timed launch, in seconds.

Game Scenes:

Flight

void AbortTimedLaunch ()#

Abort a timed launch.

Game Scenes:

Flight

void LaunchToTargetPlane ()#

Count down to a launch into the plane of the target, and set AscentGuidance.DesiredInclination to match. Throws an exception if there is no target orbiting the body the vessel is on.

Game Scenes:

Flight

Note

The countdown runs while the autopilot is enabled.

void LaunchToTargetLan ()#

Count down to a launch into the plane with the target’s longitude of the ascending node, less AscentGuidance.LaunchLANDifference, and inclination AscentGuidance.DesiredInclination. Throws an exception if there is no target orbiting the body the vessel is on, or the ascent type is not AscentType.PSG.

Game Scenes:

Flight

Note

The countdown runs while the autopilot is enabled.

void LaunchToLan ()#

Count down to a launch into the plane with longitude of the ascending node AscentGuidance.DesiredLan and inclination AscentGuidance.DesiredInclination. Throws an exception if the ascent type is not AscentType.PSG.

Game Scenes:

Flight

Note

The countdown runs while the autopilot is enabled.

enum AscentType#

The ascent type. See AscentGuidance.AscentType.

Classic#

The classic ascent path. See AscentGuidance.ClassicPath.

PSG#

Polynomial SQP Guidance, an optimized ascent, for RSS/RO. See AscentGuidance.PSGSettings.

enum AscentLaunchMode#

The launch mode of the ascent autopilot. See AscentGuidance.LaunchMode.

Normal#

No timed launch is counting down.

TargetPlane#

A timed launch into the plane of the target. See AscentGuidance.LaunchToTargetPlane.

TargetLan#

A timed launch to the target’s longitude of the ascending node. See AscentGuidance.LaunchToTargetLan.

Lan#

A timed launch to a longitude of the ascending node. See AscentGuidance.LaunchToLan.

AscentSettings#

class AscentSettings#

The Ascent Settings window, which holds the settings shared by the ascent types.

bool ForceRoll { get; set; }#

Whether the autopilot controls the roll.

Game Scenes:

Flight

double VerticalRoll { get; set; }#

The roll during the vertical climb, in degrees.

Game Scenes:

Flight

Note

Requires AscentSettings.ForceRoll.

double TurnRoll { get; set; }#

The roll during the turn, in degrees.

Game Scenes:

Flight

Note

Requires AscentSettings.ForceRoll.

double RollAltitude { get; set; }#

The altitude above which the autopilot controls the roll, in meters.

Game Scenes:

Flight

Note

Requires AscentSettings.ForceRoll.

bool AutoDeploySolarPanels { get; set; }#

Whether the ascent keeps the solar panels retracted in the atmosphere, and extends them above it.

Game Scenes:

Flight

bool AutoDeployAntennas { get; set; }#

Whether the ascent keeps the antennas retracted in the atmosphere, and extends them above it.

Game Scenes:

Flight

bool Autostage { get; set; }#

Whether the autopilot stages when the current stage runs out of fuel.

Game Scenes:

Flight

AscentStaging Staging { get; }#

The staging settings of the ascent, which apply in place of Utilities.Staging while the autopilot is enabled.

Game Scenes:

Flight

AscentThrustLimits Thrust { get; }#

The throttle limits of the ascent, which apply in place of Utilities.Thrust while the autopilot is enabled.

Game Scenes:

Flight

bool Autowarp { get; set; }#

Whether to warp time during the launch countdown and the coasts of the ascent.

Game Scenes:

Flight

bool LimitingAngleOfAttack { get; }#

Whether the angle of attack limit is limiting the steering.

Game Scenes:

Flight

double CurrentMaxAngleOfAttack { get; }#

The largest angle of attack the limit allows now, in degrees.

Game Scenes:

Flight

AscentStaging#

class AscentStaging#

The staging settings of the ascent, from the Ascent Settings window.

Note

The ascent starts with a copy of Utilities.Staging, and keeps its own settings after that.

double AutostagePreDelay { get; set; }#

The delay before each staging, in seconds.

Game Scenes:

Flight

double AutostagePostDelay { get; set; }#

The delay after each staging, in seconds.

Game Scenes:

Flight

int AutostageLimit { get; set; }#

The last stage the ascent activates.

Game Scenes:

Flight

bool FairingMaxDynamicPressureEnabled { get; set; }#

Whether to wait for AscentStaging.FairingMaxDynamicPressure to jettison a fairing.

Game Scenes:

Flight

double FairingMaxDynamicPressure { get; set; }#

The largest dynamic pressure at which the ascent jettisons a fairing, in pascals.

Game Scenes:

Flight

bool FairingMinAltitudeEnabled { get; set; }#

Whether to wait for AscentStaging.FairingMinAltitude to jettison a fairing.

Game Scenes:

Flight

double FairingMinAltitude { get; set; }#

The lowest altitude at which the ascent jettisons a fairing, in meters.

Game Scenes:

Flight

bool FairingMaxAerothermalFluxEnabled { get; set; }#

Whether to wait for AscentStaging.FairingMaxAerothermalFlux to jettison a fairing.

Game Scenes:

Flight

double FairingMaxAerothermalFlux { get; set; }#

The largest aerothermal flux at which the ascent jettisons a fairing, in \(\mathrm{W/m^{2}}\).

Game Scenes:

Flight

double ClampAutoStageThrustPct { get; set; }#

The fraction of full thrust at which the ascent releases the launch clamps.

Game Scenes:

Flight

bool HotStaging { get; set; }#

Whether the ascent ignites the next stage before the current one burns out.

Game Scenes:

Flight

double HotStagingLeadTime { get; set; }#

The time before burnout at which a hot staging happens, in seconds.

Game Scenes:

Flight

Note

Requires AscentStaging.HotStaging.

bool DropSolids { get; set; }#

Whether the ascent drops the solid boosters of the next stage early, once their thrust no longer pays for their mass.

Game Scenes:

Flight

double DropSolidsTwrPct { get; set; }#

The fraction of the vessel’s thrust-to-weight ratio at which the solid boosters drop, between 0 and 1.

Game Scenes:

Flight

Note

Requires AscentStaging.DropSolids.

AscentThrustLimits#

class AscentThrustLimits#

The throttle limits of the ascent, from the Ascent Settings window.

Note

The ascent starts with a copy of Utilities.Thrust, and keeps its own limits after that. The AscentType.PSG ascent ignores AscentThrustLimits.LimitThrottle and AscentThrustLimits.ElectricThrottle.

bool LimitToPreventOverheats { get; set; }#

Whether to limit the throttle to keep parts from overheating.

Game Scenes:

Flight

bool LimitDynamicPressure { get; set; }#

Whether to limit the dynamic pressure.

Game Scenes:

Flight

double MaxDynamicPressure { get; set; }#

The largest dynamic pressure, in pascals.

Game Scenes:

Flight

bool LimitAcceleration { get; set; }#

Whether to limit the acceleration.

Game Scenes:

Flight

double MaxAcceleration { get; set; }#

The largest acceleration, in \(\mathrm{m/s^{2}}\).

Game Scenes:

Flight

bool LimitThrottle { get; set; }#

Whether to limit the throttle.

Game Scenes:

Flight

double MaxThrottle { get; set; }#

The largest throttle, between 0 and 1.

Game Scenes:

Flight

bool LimiterMinThrottle { get; set; }#

Whether to keep the throttle above AscentThrustLimits.MinThrottle.

Game Scenes:

Flight

double MinThrottle { get; set; }#

The smallest throttle, between 0 and 1.

Game Scenes:

Flight

bool ElectricThrottle { get; set; }#

Whether to limit the throttle of electric engines to the available power.

Game Scenes:

Flight

double ElectricThrottleLo { get; set; }#

The charge level at which electric engines stop, between 0 and 1.

Game Scenes:

Flight

double ElectricThrottleHi { get; set; }#

The charge level at which electric engines run at full throttle, between 0 and 1.

Game Scenes:

Flight

bool LimitToPreventUnstableIgnition { get; set; }#

Whether to hold the throttle at zero while the engines’ fuel is unstable.

Game Scenes:

Flight

Note

MechJeb shows this setting only with Real Fuels, as stock engines have stable fuel.

bool AutoRCSUllaging { get; set; }#

Whether to fire the RCS forward to settle the fuel before the engines ignite.

Game Scenes:

Flight

Note

MechJeb shows this setting only with Real Fuels, as stock engines have stable fuel.

PSGSettings#

class PSGSettings#

The settings of the Polynomial SQP Guidance ascent, from the Ascent Settings window and the PSG Stages window, and the state of its guidance.

Note

PSG plans which stages burn and coast from the vessel. The target orbit is set in AscentGuidance.

double PitchStartHeight { get; set; }#

The height above the launch site at which the pitch program starts, in meters.

Game Scenes:

Flight

double PitchRate { get; set; }#

The pitch rate of the pitch program, in \(\mathrm{deg/s}\).

Game Scenes:

Flight

double DragCoefficient { get; set; }#

The drag coefficient guidance plans with.

Game Scenes:

Flight

Note

Ignored with PSGSettings.AutoAero.

double ReferenceArea { get; set; }#

The reference area guidance plans with, in \(\mathrm{m^{2}}\).

Game Scenes:

Flight

Note

Ignored with PSGSettings.AutoAero.

bool AutoAero { get; set; }#

Whether guidance works out PSGSettings.DragCoefficient and PSGSettings.ReferenceArea from the vessel before each solve.

Game Scenes:

Flight

double LimitQAlpha { get; set; }#

The limit on dynamic pressure times angle of attack, in \(\mathrm{Pa \cdot rad}\).

Game Scenes:

Flight

Note

0 turns the limit off. MechJeb clamps it to at most 10000.

double MinDeltaV { get; set; }#

The smallest delta-v of a stage that guidance plans with, in \(\mathrm{m/s}\).

Game Scenes:

Flight

double MaxCoast { get; set; }#

The longest coast guidance plans, in seconds.

Game Scenes:

Flight

double MinCoast { get; set; }#

The shortest coast guidance plans, in seconds.

Game Scenes:

Flight

double UllageLeadTime { get; set; }#

The time before an ignition at which RCS settles the propellant, in seconds.

Game Scenes:

Flight

double SpinupLeadTime { get; set; }#

The time before staging at which the spin-up starts, in seconds.

Game Scenes:

Flight

double SpinupAngularVelocity { get; set; }#

The angular velocity of the spin-up, in \(\mathrm{rad/s}\).

Game Scenes:

Flight

Note

MechJeb’s window shows it in revolutions per minute.

bool HasSolution { get; }#

Whether guidance has a solution.

Game Scenes:

Flight

string GuidanceStatus { get; }#

The status of guidance.

Game Scenes:

Flight

double TimeToGo { get; }#

The time to the end of the current burn of the solution, in seconds.

Game Scenes:

Flight

Note

Requires PSGSettings.HasSolution.

double VelocityToGo { get; }#

The delta-v left in the solution, in \(\mathrm{m/s}\).

Game Scenes:

Flight

Note

Requires PSGSettings.HasSolution.

double Pitch { get; }#

The pitch guidance commands, in degrees.

Game Scenes:

Flight

Note

Requires PSGSettings.HasSolution.

double Heading { get; }#

The heading guidance commands, in degrees.

Game Scenes:

Flight

Note

Requires PSGSettings.HasSolution.

ClassicPath#

class ClassicPath#

The settings of the classic ascent path, from the Ascent Path Editor window and the Ascent Settings window.

double TurnStartAltitude { get; set; }#

The altitude at which the turn starts, in meters.

Game Scenes:

Flight

double TurnStartVelocity { get; set; }#

The speed at which the turn starts, in \(\mathrm{m/s}\).

Game Scenes:

Flight

double TurnEndAltitude { get; set; }#

The altitude at which the turn ends, in meters.

Game Scenes:

Flight

double TurnEndAngle { get; set; }#

The final flight path angle, in degrees.

Game Scenes:

Flight

double TurnShapeExponent { get; set; }#

The steepness of the turn, between 0 and 1.

Game Scenes:

Flight

bool AutoPath { get; set; }#

Whether the autopilot chooses the turn altitudes and speed.

Game Scenes:

Flight

float AutoTurnPercent { get; set; }#

The altitude at which an automatic turn starts, as a fraction of the height of the atmosphere.

Game Scenes:

Flight

Note

Requires ClassicPath.AutoPath.

float AutoTurnSpeedFactor { get; set; }#

The factor that sets the speed at which an automatic turn starts.

Game Scenes:

Flight

Note

Requires ClassicPath.AutoPath.

double AutoTurnStartAltitude { get; }#

The altitude at which an automatic turn starts, in meters.

Game Scenes:

Flight

double AutoTurnStartVelocity { get; }#

The speed at which an automatic turn starts, in \(\mathrm{m/s}\).

Game Scenes:

Flight

double AutoTurnEndAltitude { get; }#

The altitude at which an automatic turn ends, in meters.

Game Scenes:

Flight

bool CorrectiveSteering { get; set; }#

Whether the autopilot steers by the velocity vector rather than the position vector.

Game Scenes:

Flight

Note

It is more accurate, though large craft may do better without it.

double CorrectiveSteeringGain { get; set; }#

The gain of the corrective steering.

Game Scenes:

Flight

bool LimitAngleOfAttack { get; set; }#

Whether to limit the angle of attack.

Game Scenes:

Flight

double MaxAngleOfAttack { get; set; }#

The largest angle of attack, in degrees.

Game Scenes:

Flight

double AngleOfAttackLimitFadeoutPressure { get; set; }#

The dynamic pressure below which the angle of attack limit fades out, in pascals.

Game Scenes:

Flight

bool SkipCircularization { get; set; }#

Whether to skip the circularization burn.

Game Scenes:

Flight