HoverslamAutopilot#

class MechJeb.HoverslamAutopilot#

The hoverslam autopilot, which lands with a single burn that ends just above the ground, then descends vertically. The Hoverslam Info window shows it and its prediction.

Note

The prediction runs whenever the vessel is in flight, so it is available with the autopilot disabled.

enabled#

Whether the autopilot is enabled.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

Note

The autopilot can be enabled before there is a prediction, and starts flying once there is one. Setting it throws an exception if the autopilot is HoverslamState.locked.

state#

The phase of the autopilot.

Attribute:

Read-only, cannot be set

Return type:

HoverslamState

Game Scenes:

Flight

ignition_lead#

The time before the computed ignition at which the burn starts, in seconds.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

It makes up for staging or engine spool-up delays. For a margin against the terrain, raise HoverslamAutopilot.vertical_altitude instead.

touchdown_speed#

The downward speed at touchdown, in \(\mathrm{m/s}\).

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

autowarp#

Whether to warp time to the ignition.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

hold_upright#

Whether Smart A.S.S. holds the vessel upright after touchdown.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

autostage#

Whether enabling the autopilot enables autostaging, and disabling it disables autostaging.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

pwm_pulse_width#

The shortest pulse of the throttle, in seconds.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

The autopilot pulses the throttle of engines that cannot throttle low enough to hover, such as with Real Fuels.

map_landing_prediction#

Whether to mark the predicted landing site on the map.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

recalculation_interval#

The time between updates of the prediction, in seconds.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

vertical_authority#

The fraction of the thrust above hover that the burn plans to use, between 0 and 1.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

Note

0.5 leaves an equal margin for overshoot and undershoot. A higher value uses less delta-v, with less margin.

vertical_altitude#

The altitude above the terrain at which the burn ends and the vertical descent starts, in meters.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

has_prediction#

Whether there is a prediction of the landing.

Attribute:

Read-only, cannot be set

Return type:

bool

Game Scenes:

Flight

ignition_time#

The universal time of the ignition, in seconds.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

landing_time#

The universal time of the touchdown, in seconds.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

time_to_ignition#

The time until the ignition, in seconds.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

time_to_landing#

The time until the touchdown, in seconds.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

landing_latitude#

The latitude of the predicted landing site, in degrees.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

landing_longitude#

The longitude of the predicted landing site, in degrees.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

landing_biome#

The biome of the predicted landing site, or N/A with no prediction.

Attribute:

Read-only, cannot be set

Return type:

str

Game Scenes:

Flight

terrain_altitude#

The altitude above sea level of the terrain at the predicted landing site, in meters.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

slope#

The slope of the terrain at the predicted landing site, in degrees.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

final_descent_speed#

The speed of the vertical descent, in \(\mathrm{m/s}\).

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

final_thrust_acceleration#

The acceleration from thrust during the vertical descent, in \(\mathrm{m/s^{2}}\).

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

delta_v#

The delta-v of the landing burn, in \(\mathrm{m/s}\).

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

class MechJeb.HoverslamState#

The phase of the hoverslam autopilot. See HoverslamAutopilot.state.

locked#

The autopilot needs a research or a tracking station upgrade.

disabled#

The autopilot is disabled.

init#

The autopilot is waiting for a prediction.

align#

The autopilot is turning the vessel to the burn.

coast#

The autopilot is coasting to the ignition.

burn#

The autopilot is burning to slow down.

vertical#

The autopilot is descending vertically to touchdown.

finished#

The vessel has landed.