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.

HoverslamAutopilot.getEnabled()#
HoverslamAutopilot.setEnabled(value)#

Whether the autopilot is enabled.

Property:

Can be read or written

Return type:

boolean

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 MechJeb.HoverslamState.locked.

HoverslamAutopilot.getState()#

The phase of the autopilot.

Property:

Read-only, cannot be set

Return type:

MechJeb.HoverslamState

Game Scenes:

Flight

HoverslamAutopilot.getIgnitionLead()#
HoverslamAutopilot.setIgnitionLead(value)#

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

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight

Note

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

HoverslamAutopilot.getTouchdownSpeed()#
HoverslamAutopilot.setTouchdownSpeed(value)#

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

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getAutowarp()#
HoverslamAutopilot.setAutowarp(value)#

Whether to warp time to the ignition.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight

HoverslamAutopilot.getHoldUpright()#
HoverslamAutopilot.setHoldUpright(value)#

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

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight

HoverslamAutopilot.getAutostage()#
HoverslamAutopilot.setAutostage(value)#

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

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight

HoverslamAutopilot.getPWMPulseWidth()#
HoverslamAutopilot.setPWMPulseWidth(value)#

The shortest pulse of the throttle, in seconds.

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight

Note

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

HoverslamAutopilot.getMapLandingPrediction()#
HoverslamAutopilot.setMapLandingPrediction(value)#

Whether to mark the predicted landing site on the map.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight

HoverslamAutopilot.getRecalculationInterval()#
HoverslamAutopilot.setRecalculationInterval(value)#

The time between updates of the prediction, in seconds.

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getVerticalAuthority()#
HoverslamAutopilot.setVerticalAuthority(value)#

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

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight

Note

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

HoverslamAutopilot.getVerticalAltitude()#
HoverslamAutopilot.setVerticalAltitude(value)#

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

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getHasPrediction()#

Whether there is a prediction of the landing.

Property:

Read-only, cannot be set

Return type:

boolean

Game Scenes:

Flight

HoverslamAutopilot.getIgnitionTime()#

The universal time of the ignition, in seconds.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getLandingTime()#

The universal time of the touchdown, in seconds.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getTimeToIgnition()#

The time until the ignition, in seconds.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getTimeToLanding()#

The time until the touchdown, in seconds.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getLandingLatitude()#

The latitude of the predicted landing site, in degrees.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getLandingLongitude()#

The longitude of the predicted landing site, in degrees.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getLandingBiome()#

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

Property:

Read-only, cannot be set

Return type:

string

Game Scenes:

Flight

HoverslamAutopilot.getTerrainAltitude()#

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

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getSlope()#

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

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getFinalDescentSpeed()#

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

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getFinalThrustAcceleration()#

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

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

HoverslamAutopilot.getDeltaV()#

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

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

class MechJeb.HoverslamState()#

The phase of the hoverslam autopilot. See MechJeb.HoverslamAutopilot.getState().

HoverslamState.locked#

The autopilot needs a research or a tracking station upgrade.

HoverslamState.disabled#

The autopilot is disabled.

HoverslamState.init#

The autopilot is waiting for a prediction.

HoverslamState.align#

The autopilot is turning the vessel to the burn.

HoverslamState.coast#

The autopilot is coasting to the ignition.

HoverslamState.burn#

The autopilot is burning to slow down.

HoverslamState.vertical#

The autopilot is descending vertically to touchdown.

HoverslamState.finished#

The vessel has landed.