.. default-domain:: http .. highlight:: json HoverslamAutopilot ================== .. _http-MechJeb.HoverslamAutopilot: .. rubric:: 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)``. .. http: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"``. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson bool value: .. http: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"``. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson bool value: The new value. .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/state The phase of the autopilot. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson MechJeb.HoverslamState value: .. http: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 :http:get:`/mech-jeb/hoverslam-autopilot/(id)/vertical-altitude` instead. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http: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 :http:get:`/mech-jeb/hoverslam-autopilot/(id)/vertical-altitude` instead. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson double value: The new value. .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/touchdown-speed The downward speed at touchdown, in :math:`\mathrm{m/s}`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:put:: /mech-jeb/hoverslam-autopilot/(id)/touchdown-speed The downward speed at touchdown, in :math:`\mathrm{m/s}`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson double value: The new value. .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/autowarp Whether to warp time to the ignition. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson bool value: .. http:put:: /mech-jeb/hoverslam-autopilot/(id)/autowarp Whether to warp time to the ignition. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson bool value: The new value. .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/hold-upright Whether Smart A.S.S. holds the vessel upright after touchdown. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson bool value: .. http:put:: /mech-jeb/hoverslam-autopilot/(id)/hold-upright Whether Smart A.S.S. holds the vessel upright after touchdown. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson bool value: The new value. .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/autostage Whether enabling the autopilot enables autostaging, and disabling it disables autostaging. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson bool value: .. http:put:: /mech-jeb/hoverslam-autopilot/(id)/autostage Whether enabling the autopilot enables autostaging, and disabling it disables autostaging. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson bool value: The new value. .. http: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. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http: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. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson double value: The new value. .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/map-landing-prediction Whether to mark the predicted landing site on the map. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson bool value: .. http:put:: /mech-jeb/hoverslam-autopilot/(id)/map-landing-prediction Whether to mark the predicted landing site on the map. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson bool value: The new value. .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/recalculation-interval The time between updates of the prediction, in seconds. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:put:: /mech-jeb/hoverslam-autopilot/(id)/recalculation-interval The time between updates of the prediction, in seconds. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson double value: The new value. .. http: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. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http: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. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson double value: The new value. .. http: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. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http: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. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :reqjson double value: The new value. .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/has-prediction Whether there is a prediction of the landing. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson bool value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/ignition-time The universal time of the ignition, in seconds. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/landing-time The universal time of the touchdown, in seconds. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/time-to-ignition The time until the ignition, in seconds. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/time-to-landing The time until the touchdown, in seconds. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/landing-latitude The latitude of the predicted landing site, in degrees. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/landing-longitude The longitude of the predicted landing site, in degrees. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/landing-biome The biome of the predicted landing site, or ``N/A`` with no prediction. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson string value: .. http: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 :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/slope The slope of the terrain at the predicted landing site, in degrees. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/final-descent-speed The speed of the vertical descent, in :math:`\mathrm{m/s}`. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/final-thrust-acceleration The acceleration from thrust during the vertical descent, in :math:`\mathrm{m/s^{2}}`. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. http:get:: /mech-jeb/hoverslam-autopilot/(id)/delta-v The delta-v of the landing burn, in :math:`\mathrm{m/s}`. .. note:: Requires :http:get:`/mech-jeb/hoverslam-autopilot/(id)/has-prediction`. :param id: The identifier of the :ref:`HoverslamAutopilot ` object. :resjson double value: .. _http-MechJeb.HoverslamState: .. rubric:: HoverslamState The phase of the hoverslam autopilot. See :http: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.