.. default-domain:: lua .. highlight:: lua .. currentmodule:: MechJeb HoverslamAutopilot ================== .. 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. .. attribute:: enabled: boolean Whether the autopilot is enabled. :Attribute: Can be read or written .. 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 :data:`MechJeb.HoverslamState.locked`. .. attribute:: state: MechJeb.HoverslamState The phase of the autopilot. :Attribute: Read-only, cannot be set .. attribute:: ignition_lead: number The time before the computed ignition at which the burn starts, in seconds. :Attribute: Can be read or written .. note:: It makes up for staging or engine spool-up delays. For a margin against the terrain, raise :attr:`MechJeb.HoverslamAutopilot.vertical_altitude` instead. .. attribute:: touchdown_speed: number The downward speed at touchdown, in :math:`\mathrm{m/s}`. :Attribute: Can be read or written .. attribute:: autowarp: boolean Whether to warp time to the ignition. :Attribute: Can be read or written .. attribute:: hold_upright: boolean Whether Smart A.S.S. holds the vessel upright after touchdown. :Attribute: Can be read or written .. attribute:: autostage: boolean Whether enabling the autopilot enables autostaging, and disabling it disables autostaging. :Attribute: Can be read or written .. attribute:: pwm_pulse_width: number The shortest pulse of the throttle, in seconds. :Attribute: Can be read or written .. note:: The autopilot pulses the throttle of engines that cannot throttle low enough to hover, such as with Real Fuels. .. attribute:: map_landing_prediction: boolean Whether to mark the predicted landing site on the map. :Attribute: Can be read or written .. attribute:: recalculation_interval: number The time between updates of the prediction, in seconds. :Attribute: Can be read or written .. attribute:: vertical_authority: number The fraction of the thrust above hover that the burn plans to use, between 0 and 1. :Attribute: Can be read or written .. note:: 0.5 leaves an equal margin for overshoot and undershoot. A higher value uses less delta-v, with less margin. .. attribute:: vertical_altitude: number The altitude above the terrain at which the burn ends and the vertical descent starts, in meters. :Attribute: Can be read or written .. attribute:: has_prediction: boolean Whether there is a prediction of the landing. :Attribute: Read-only, cannot be set .. attribute:: ignition_time: number The universal time of the ignition, in seconds. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: landing_time: number The universal time of the touchdown, in seconds. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: time_to_ignition: number The time until the ignition, in seconds. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: time_to_landing: number The time until the touchdown, in seconds. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: landing_latitude: number The latitude of the predicted landing site, in degrees. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: landing_longitude: number The longitude of the predicted landing site, in degrees. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: landing_biome: string The biome of the predicted landing site, or ``N/A`` with no prediction. :Attribute: Read-only, cannot be set .. attribute:: terrain_altitude: number The altitude above sea level of the terrain at the predicted landing site, in meters. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: slope: number The slope of the terrain at the predicted landing site, in degrees. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: final_descent_speed: number The speed of the vertical descent, in :math:`\mathrm{m/s}`. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: final_thrust_acceleration: number The acceleration from thrust during the vertical descent, in :math:`\mathrm{m/s^{2}}`. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. attribute:: delta_v: number The delta-v of the landing burn, in :math:`\mathrm{m/s}`. :Attribute: Read-only, cannot be set .. note:: Requires :attr:`MechJeb.HoverslamAutopilot.has_prediction`. .. class:: HoverslamState The phase of the hoverslam autopilot. See :attr:`MechJeb.HoverslamAutopilot.state`. .. data:: locked The autopilot needs a research or a tracking station upgrade. .. data:: disabled The autopilot is disabled. .. data:: init The autopilot is waiting for a prediction. .. data:: align The autopilot is turning the vessel to the burn. .. data:: coast The autopilot is coasting to the ignition. .. data:: burn The autopilot is burning to slow down. .. data:: vertical The autopilot is descending vertically to touchdown. .. data:: finished The vessel has landed.