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.

enabled#

Whether the module is enabled.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

status#

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

Attribute:

Read-only, cannot be set

Return type:

str

Game Scenes:

Flight

ascent_type#

The ascent path.

Attribute:

Can be read or written

Return type:

AscentType

Game Scenes:

Flight

settings#

The Ascent Settings window.

Attribute:

Read-only, cannot be set

Return type:

AscentSettings

Game Scenes:

Flight

pvg_settings#

The PVG Settings window, with the settings of the AscentType.pvg path.

Attribute:

Read-only, cannot be set

Return type:

PVGSettings

Game Scenes:

Flight

classic_path#

The Ascent Path Editor window, with the settings of the AscentType.classic path.

Attribute:

Read-only, cannot be set

Return type:

ClassicPath

Game Scenes:

Flight

desired_orbit_altitude#

The altitude of the final circular orbit, in meters.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

desired_apoapsis#

The target apoapsis, in meters.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Applies on the AscentType.pvg path.

attach_alt_flag#

Whether the orbit is attached at AscentGuidance.desired_attach_alt.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

Note

Applies on the AscentType.pvg path, with an early shutoff stage, set by PVGSettings.optimize_stage_flag and PVGSettings.optimize_stage. Without one, MechJeb always attaches the orbit.

desired_attach_alt#

The altitude at which the orbit is attached, in meters.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Applies on the AscentType.pvg path. Requires AscentGuidance.attach_alt_flag, unless there is no early shutoff stage. See PVGSettings.optimize_stage.

desired_fpa#

The flight path angle at orbit insertion, in degrees.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Applies on the AscentType.pvg path, when there is no early shutoff stage. See PVGSettings.optimize_stage.

desired_inclination#

The inclination of the final circular orbit, in degrees.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

launch_mode#

The launch mode, which gives whether the autopilot is waiting for a timed launch.

Attribute:

Read-only, cannot be set

Return type:

AscentLaunchMode

Game Scenes:

Flight

launch_to_rendezvous()#

Launch to rendezvous with the target. Throws an exception if there is no target, or the ascent path is PVG.

Game Scenes:

Flight

launch_phase_angle#

The phase angle to the target of a launch to rendezvous, in degrees.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

launch_to_target_plane()#

Launch into the plane of the target. Throws an exception if there is no target.

Game Scenes:

Flight

launch_lan_difference#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

launch_to_match_lan()#

Launch into the plane of the target, at the time the target’s longitude of the ascending node, less AscentGuidance.launch_lan_difference, passes overhead. Keeps AscentGuidance.desired_inclination. Throws an exception if there is no target, or the ascent path is not AscentType.pvg.

Game Scenes:

Flight

launch_to_lan()#

Launch into the plane with longitude of the ascending node AscentGuidance.desired_lan and inclination AscentGuidance.desired_inclination. Throws an exception if the ascent path is not AscentType.pvg.

Game Scenes:

Flight

desired_lan#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

abort_timed_launch()#

Abort a timed launch that has not started yet. Throws an exception if the launch mode is AscentLaunchMode.unknown.

Game Scenes:

Flight

warp_count_down#

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

Attribute:

Can be read or written

Return type:

int

Game Scenes:

Flight

override_warp_to_plane#

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

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

class AscentType#

The ascent path. See AscentGuidance.ascent_type.

classic#

The classic ascent path. See AscentGuidance.classic_path.

pvg#

Primer Vector Guidance, for RSS/RO. See AscentGuidance.pvg_settings.

class AscentLaunchMode#

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

normal#

The autopilot is not performing a timed launch.

rendezvous#

A timed launch to rendezvous with the target vessel.

target_plane#

A timed launch into the plane of the target.

match_lan#

A timed launch to the target’s longitude of the ascending node. See AscentGuidance.launch_to_match_lan().

lan#

A timed launch to a longitude of the ascending node. See AscentGuidance.launch_to_lan().

unknown#

A timed launch of another kind, started from MechJeb’s window.

AscentSettings#

class AscentSettings#

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

force_roll#

Whether the autopilot controls the roll.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

vertical_roll#

The roll during the vertical climb, in degrees.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires AscentSettings.force_roll.

turn_roll#

The roll during the turn, in degrees.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires AscentSettings.force_roll.

roll_altitude#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires AscentSettings.force_roll.

limit_angle_of_attack#

Whether to limit the angle of attack.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

Note

Applies on the AscentType.classic path.

max_angle_of_attack#

The largest angle of attack, in degrees.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires AscentSettings.limit_angle_of_attack, and applies on the AscentType.classic path.

angle_of_attack_limit_fadeout_pressure#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires AscentSettings.limit_angle_of_attack, and applies on the AscentType.classic path.

limiting_angle_of_attack#

Whether the angle of attack limit is limiting the steering.

Attribute:

Read-only, cannot be set

Return type:

bool

Game Scenes:

Flight

current_max_angle_of_attack#

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

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

corrective_steering#

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

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

Note

It is more accurate, though large craft may do better without it. Applies on the AscentType.classic path.

corrective_steering_gain#

The gain of the corrective steering.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires AscentSettings.corrective_steering, and applies on the AscentType.classic path.

autostage#

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

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

staging#

The autostaging settings. The same object as Utilities.staging.

Attribute:

Read-only, cannot be set

Return type:

Autostaging

Game Scenes:

Flight

thrust#

The throttle limiters. The same object as Utilities.thrust.

Attribute:

Read-only, cannot be set

Return type:

ThrustLimiter

Game Scenes:

Flight

autodeploy_solar_panels#

Whether to deploy the solar panels when the ascent finishes.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

auto_deploy_antennas#

Whether to deploy the antennas when the ascent finishes.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

autowarp#

Whether to warp time during the ascent.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

Note

The same setting as ManeuverPlanner.autowarp.

skip_circularization#

Whether to skip the circularization burn.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

PVGSettings#

class PVGSettings#

The PVG Settings window, which holds the settings of the Primer Vector Guidance ascent path.

dynamic_pressure_trigger#

The dynamic pressure below which guidance starts, in pascals.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

fixed_coast#

Whether the coast has a fixed length.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

fixed_coast_length#

The length of the coast, in seconds.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires PVGSettings.fixed_coast.

min_delta_v#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

last_stage#

The last stage that guidance plans with.

Attribute:

Can be read or written

Return type:

int

Game Scenes:

Flight

optimize_stage_flag#

Whether guidance may shut off PVGSettings.optimize_stage early.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

optimize_stage#

The stage that guidance may shut off early.

Attribute:

Can be read or written

Return type:

int

Game Scenes:

Flight

Note

Requires PVGSettings.optimize_stage_flag. -1 is no stage.

unguided_stages_flag#

Whether guidance leaves PVGSettings.unguided_stages unguided.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

unguided_stages#

The stages that guidance leaves unguided.

Attribute:

Can be read or written

Return type:

list(int)

Game Scenes:

Flight

coast_stage_flag#

Whether guidance coasts in PVGSettings.coast_stage.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

coast_stage#

The stage before or after which guidance coasts.

Attribute:

Can be read or written

Return type:

int

Game Scenes:

Flight

coast_before_flag#

Whether the coast comes before PVGSettings.coast_stage, rather than after it.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

ullage_lead_time#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

spinup_stage_flag#

Whether to spin up the vessel before PVGSettings.spinup_stage.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

spinup_stage#

The stage before which to spin up the vessel.

Attribute:

Can be read or written

Return type:

int

Game Scenes:

Flight

spinup_angular_velocity#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires PVGSettings.spinup_stage_flag. MechJeb’s window shows it in revolutions per minute.

spinup_lead_time#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

limit_qa#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

MechJeb clamps it to between 0 and 10000.

pitch_rate#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

pitch_start_velocity#

The speed at which the booster starts to pitch over, in \(\mathrm{m/s}\).

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

staging_trigger#

The stage after which guidance starts.

Attribute:

Can be read or written

Return type:

int

Game Scenes:

Flight

staging_trigger_flag#

Whether guidance starts after PVGSettings.staging_trigger.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

ClassicPath#

class ClassicPath#

The Ascent Path Editor window, which holds the settings of the classic ascent path.

auto_path#

Whether the autopilot chooses the turn altitudes and speed.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

auto_turn_percent#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires ClassicPath.auto_path.

auto_turn_speed_factor#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

Requires ClassicPath.auto_path.

auto_turn_start_altitude#

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

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

auto_turn_start_velocity#

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

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

auto_turn_end_altitude#

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

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

turn_start_altitude#

The altitude at which the turn starts, in meters.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

turn_start_velocity#

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

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

turn_end_altitude#

The altitude at which the turn ends, in meters.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

turn_end_angle#

The final flight path angle, in degrees.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

turn_shape_exponent#

The steepness of the turn, between 0 and 1.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight