.. default-domain:: java .. highlight:: java .. package:: krpc.client.services.MechJeb HoverslamAutopilot ================== .. type:: public class 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. .. method:: boolean getEnabled() .. method:: void setEnabled(boolean value) Whether the autopilot is enabled. :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 :field:`HoverslamState.LOCKED`. .. method:: HoverslamState getState() The phase of the autopilot. :Game Scenes: Flight .. method:: double getIgnitionLead() .. method:: void setIgnitionLead(double value) The time before the computed ignition at which the burn starts, in seconds. :Game Scenes: Flight .. note:: It makes up for staging or engine spool-up delays. For a margin against the terrain, raise :meth:`HoverslamAutopilot.getVerticalAltitude()` instead. .. method:: double getTouchdownSpeed() .. method:: void setTouchdownSpeed(double value) The downward speed at touchdown, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. method:: boolean getAutowarp() .. method:: void setAutowarp(boolean value) Whether to warp time to the ignition. :Game Scenes: Flight .. method:: boolean getHoldUpright() .. method:: void setHoldUpright(boolean value) Whether Smart A.S.S. holds the vessel upright after touchdown. :Game Scenes: Flight .. method:: boolean getAutostage() .. method:: void setAutostage(boolean value) Whether enabling the autopilot enables autostaging, and disabling it disables autostaging. :Game Scenes: Flight .. method:: double getPWMPulseWidth() .. method:: void setPWMPulseWidth(double value) The shortest pulse of the throttle, in seconds. :Game Scenes: Flight .. note:: The autopilot pulses the throttle of engines that cannot throttle low enough to hover, such as with Real Fuels. .. method:: boolean getMapLandingPrediction() .. method:: void setMapLandingPrediction(boolean value) Whether to mark the predicted landing site on the map. :Game Scenes: Flight .. method:: double getRecalculationInterval() .. method:: void setRecalculationInterval(double value) The time between updates of the prediction, in seconds. :Game Scenes: Flight .. method:: double getVerticalAuthority() .. method:: void setVerticalAuthority(double value) The fraction of the thrust above hover that the burn plans to use, between 0 and 1. :Game Scenes: Flight .. note:: 0.5 leaves an equal margin for overshoot and undershoot. A higher value uses less delta-v, with less margin. .. method:: double getVerticalAltitude() .. method:: void setVerticalAltitude(double value) The altitude above the terrain at which the burn ends and the vertical descent starts, in meters. :Game Scenes: Flight .. method:: boolean getHasPrediction() Whether there is a prediction of the landing. :Game Scenes: Flight .. method:: double getIgnitionTime() The universal time of the ignition, in seconds. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getLandingTime() The universal time of the touchdown, in seconds. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getTimeToIgnition() The time until the ignition, in seconds. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getTimeToLanding() The time until the touchdown, in seconds. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getLandingLatitude() The latitude of the predicted landing site, in degrees. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getLandingLongitude() The longitude of the predicted landing site, in degrees. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: String getLandingBiome() The biome of the predicted landing site, or ``N/A`` with no prediction. :Game Scenes: Flight .. method:: double getTerrainAltitude() The altitude above sea level of the terrain at the predicted landing site, in meters. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getSlope() The slope of the terrain at the predicted landing site, in degrees. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getFinalDescentSpeed() The speed of the vertical descent, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getFinalThrustAcceleration() The acceleration from thrust during the vertical descent, in :math:`\mathrm{m/s^{2}}`. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. method:: double getDeltaV() The delta-v of the landing burn, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. note:: Requires :meth:`HoverslamAutopilot.getHasPrediction()`. .. type:: public enum HoverslamState The phase of the hoverslam autopilot. See :meth:`HoverslamAutopilot.getState()`. .. field:: public HoverslamState LOCKED The autopilot needs a research or a tracking station upgrade. .. field:: public HoverslamState DISABLED The autopilot is disabled. .. field:: public HoverslamState INIT The autopilot is waiting for a prediction. .. field:: public HoverslamState ALIGN The autopilot is turning the vessel to the burn. .. field:: public HoverslamState COAST The autopilot is coasting to the ignition. .. field:: public HoverslamState BURN The autopilot is burning to slow down. .. field:: public HoverslamState VERTICAL The autopilot is descending vertically to touchdown. .. field:: public HoverslamState FINISHED The vessel has landed.