HoverslamAutopilot#
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.
A HoverslamAutopilot object is passed and returned as its identifier, a number. A path that acts on
an object takes it as (id).
- GET /mech-jeb/hoverslam-autopilot/(id)/enabled#
Whether the autopilot is enabled.
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
"locked".- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (bool)
- PUT /mech-jeb/hoverslam-autopilot/(id)/enabled#
Whether the autopilot is enabled.
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
"locked".- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (bool) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/state#
The phase of the autopilot.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (MechJeb.HoverslamState)
- GET /mech-jeb/hoverslam-autopilot/(id)/ignition-lead#
The time before the computed ignition at which the burn starts, in seconds.
Note
It makes up for staging or engine spool-up delays. For a margin against the terrain, raise
GET /mech-jeb/hoverslam-autopilot/(id)/vertical-altitudeinstead.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- PUT /mech-jeb/hoverslam-autopilot/(id)/ignition-lead#
The time before the computed ignition at which the burn starts, in seconds.
Note
It makes up for staging or engine spool-up delays. For a margin against the terrain, raise
GET /mech-jeb/hoverslam-autopilot/(id)/vertical-altitudeinstead.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (double) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/touchdown-speed#
The downward speed at touchdown, in \(\mathrm{m/s}\).
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- PUT /mech-jeb/hoverslam-autopilot/(id)/touchdown-speed#
The downward speed at touchdown, in \(\mathrm{m/s}\).
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (double) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/autowarp#
Whether to warp time to the ignition.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (bool)
- PUT /mech-jeb/hoverslam-autopilot/(id)/autowarp#
Whether to warp time to the ignition.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (bool) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/hold-upright#
Whether Smart A.S.S. holds the vessel upright after touchdown.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (bool)
- PUT /mech-jeb/hoverslam-autopilot/(id)/hold-upright#
Whether Smart A.S.S. holds the vessel upright after touchdown.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (bool) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/autostage#
Whether enabling the autopilot enables autostaging, and disabling it disables autostaging.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (bool)
- PUT /mech-jeb/hoverslam-autopilot/(id)/autostage#
Whether enabling the autopilot enables autostaging, and disabling it disables autostaging.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (bool) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/pwm-pulse-width#
The shortest pulse of the throttle, in seconds.
Note
The autopilot pulses the throttle of engines that cannot throttle low enough to hover, such as with Real Fuels.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- PUT /mech-jeb/hoverslam-autopilot/(id)/pwm-pulse-width#
The shortest pulse of the throttle, in seconds.
Note
The autopilot pulses the throttle of engines that cannot throttle low enough to hover, such as with Real Fuels.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (double) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/map-landing-prediction#
Whether to mark the predicted landing site on the map.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (bool)
- PUT /mech-jeb/hoverslam-autopilot/(id)/map-landing-prediction#
Whether to mark the predicted landing site on the map.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (bool) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/recalculation-interval#
The time between updates of the prediction, in seconds.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- PUT /mech-jeb/hoverslam-autopilot/(id)/recalculation-interval#
The time between updates of the prediction, in seconds.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (double) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/vertical-authority#
The fraction of the thrust above hover that the burn plans to use, between 0 and 1.
Note
0.5 leaves an equal margin for overshoot and undershoot. A higher value uses less delta-v, with less margin.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- PUT /mech-jeb/hoverslam-autopilot/(id)/vertical-authority#
The fraction of the thrust above hover that the burn plans to use, between 0 and 1.
Note
0.5 leaves an equal margin for overshoot and undershoot. A higher value uses less delta-v, with less margin.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (double) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/vertical-altitude#
The altitude above the terrain at which the burn ends and the vertical descent starts, in meters.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- PUT /mech-jeb/hoverslam-autopilot/(id)/vertical-altitude#
The altitude above the terrain at which the burn ends and the vertical descent starts, in meters.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Request JSON Object:
value (double) – The new value.
- GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction#
Whether there is a prediction of the landing.
- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (bool)
- GET /mech-jeb/hoverslam-autopilot/(id)/ignition-time#
The universal time of the ignition, in seconds.
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/landing-time#
The universal time of the touchdown, in seconds.
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/time-to-ignition#
The time until the ignition, in seconds.
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/time-to-landing#
The time until the touchdown, in seconds.
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/landing-latitude#
The latitude of the predicted landing site, in degrees.
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/landing-longitude#
The longitude of the predicted landing site, in degrees.
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/landing-biome#
The biome of the predicted landing site, or
N/Awith no prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (string)
- GET /mech-jeb/hoverslam-autopilot/(id)/terrain-altitude#
The altitude above sea level of the terrain at the predicted landing site, in meters.
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/slope#
The slope of the terrain at the predicted landing site, in degrees.
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/final-descent-speed#
The speed of the vertical descent, in \(\mathrm{m/s}\).
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/final-thrust-acceleration#
The acceleration from thrust during the vertical descent, in \(\mathrm{m/s^{2}}\).
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
- GET /mech-jeb/hoverslam-autopilot/(id)/delta-v#
The delta-v of the landing burn, in \(\mathrm{m/s}\).
Note
Requires
GET /mech-jeb/hoverslam-autopilot/(id)/has-prediction.- Parameters:
id – The identifier of the HoverslamAutopilot object.
- Response JSON Object:
value (double)
HoverslamState
The phase of the hoverslam autopilot. See GET /mech-jeb/hoverslam-autopilot/(id)/state.
Passed and returned as the name of one of its values:
"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.