.. default-domain:: cs .. highlight:: csharp .. namespace:: KRPC.Client.Services.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. .. property:: bool Enabled { get; set; } 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 :value:`HoverslamState.Locked`. .. property:: HoverslamState State { get; } The phase of the autopilot. :Game Scenes: Flight .. property:: double IgnitionLead { get; set; } 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 :prop:`HoverslamAutopilot.VerticalAltitude` instead. .. property:: double TouchdownSpeed { get; set; } The downward speed at touchdown, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. property:: bool Autowarp { get; set; } Whether to warp time to the ignition. :Game Scenes: Flight .. property:: bool HoldUpright { get; set; } Whether Smart A.S.S. holds the vessel upright after touchdown. :Game Scenes: Flight .. property:: bool Autostage { get; set; } Whether enabling the autopilot enables autostaging, and disabling it disables autostaging. :Game Scenes: Flight .. property:: double PWMPulseWidth { get; set; } 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. .. property:: bool MapLandingPrediction { get; set; } Whether to mark the predicted landing site on the map. :Game Scenes: Flight .. property:: double RecalculationInterval { get; set; } The time between updates of the prediction, in seconds. :Game Scenes: Flight .. property:: double VerticalAuthority { get; set; } 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. .. property:: double VerticalAltitude { get; set; } The altitude above the terrain at which the burn ends and the vertical descent starts, in meters. :Game Scenes: Flight .. property:: bool HasPrediction { get; } Whether there is a prediction of the landing. :Game Scenes: Flight .. property:: double IgnitionTime { get; } The universal time of the ignition, in seconds. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double LandingTime { get; } The universal time of the touchdown, in seconds. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double TimeToIgnition { get; } The time until the ignition, in seconds. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double TimeToLanding { get; } The time until the touchdown, in seconds. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double LandingLatitude { get; } The latitude of the predicted landing site, in degrees. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double LandingLongitude { get; } The longitude of the predicted landing site, in degrees. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: string LandingBiome { get; } The biome of the predicted landing site, or ``N/A`` with no prediction. :Game Scenes: Flight .. property:: double TerrainAltitude { get; } The altitude above sea level of the terrain at the predicted landing site, in meters. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double Slope { get; } The slope of the terrain at the predicted landing site, in degrees. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double FinalDescentSpeed { get; } The speed of the vertical descent, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double FinalThrustAcceleration { get; } The acceleration from thrust during the vertical descent, in :math:`\mathrm{m/s^{2}}`. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. property:: double DeltaV { get; } The delta-v of the landing burn, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. note:: Requires :prop:`HoverslamAutopilot.HasPrediction`. .. enum:: HoverslamState The phase of the hoverslam autopilot. See :prop:`HoverslamAutopilot.State`. .. enumerator:: Locked The autopilot needs a research or a tracking station upgrade. .. enumerator:: Disabled The autopilot is disabled. .. enumerator:: Init The autopilot is waiting for a prediction. .. enumerator:: Align The autopilot is turning the vessel to the burn. .. enumerator:: Coast The autopilot is coasting to the ignition. .. enumerator:: Burn The autopilot is burning to slow down. .. enumerator:: Vertical The autopilot is descending vertically to touchdown. .. enumerator:: Finished The vessel has landed.