.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::MechJeb LandingGuidance =============== .. class:: LandingGuidance The Landing Guidance window, which lands at a target or wherever the vessel comes down. .. function:: bool enabled() .. function:: void set_enabled(bool value) Whether the module is enabled. :Game Scenes: Flight .. function:: std::string status() The status of the autopilot. :Game Scenes: Flight .. function:: bool deploy_chutes() .. function:: void set_deploy_chutes(bool value) Whether the autopilot deploys the parachutes. :Game Scenes: Flight .. function:: bool deploy_gears() .. function:: void set_deploy_gears(bool value) Whether the autopilot deploys the landing gear. :Game Scenes: Flight .. function:: void land_at_target() Land at the target. See :func:`LandingGuidance::set_target`. Throws an exception if there is no target, or the vessel is landed or splashed down. :Game Scenes: Flight .. function:: void land_somewhere() Land wherever the vessel comes down. Throws an exception if the vessel is landed or splashed down. :Game Scenes: Flight .. function:: int32_t limit_chutes_stage() .. function:: void set_limit_chutes_stage(int32_t value) The last stage in which the autopilot deploys the parachutes. :Game Scenes: Flight .. function:: int32_t limit_gears_stage() .. function:: void set_limit_gears_stage(int32_t value) The last stage in which the autopilot deploys the landing gear. :Game Scenes: Flight .. function:: bool rcs_adjustment() .. function:: void set_rcs_adjustment(bool value) Whether the autopilot corrects its course with RCS. :Game Scenes: Flight .. function:: void abort_autoland() Stop the landing. :Game Scenes: Flight .. function:: double touchdown_speed() .. function:: void set_touchdown_speed(double value) The speed at touchdown, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. function:: std::tuple get_target_position() The world space position of the landing target. Throws an exception if there is no landing target. :Game Scenes: Flight .. function:: std::string get_target_string() The landing target as text. :Game Scenes: Flight .. function:: void pick_target_on_map() Let the player pick the landing target on the map. :Game Scenes: Flight .. function:: void set_target(SpaceCenter::CelestialBody body, double latitude, double longitude) Set the landing target to a position on the surface of a body. :Parameters: * **body** -- The body. * **latitude** -- The latitude, in degrees. * **longitude** -- The longitude, in degrees. :Game Scenes: Flight .. function:: bool autowarp() .. function:: void set_autowarp(bool value) Whether to warp time during the landing, and the burns it makes. :Game Scenes: Flight .. function:: bool jettison_before_entry() .. function:: void set_jettison_before_entry(bool value) Whether to drop the current stage just above the atmosphere, and aim for the parts that land, such as a capsule without its service stage. :Game Scenes: Flight .. function:: bool limiter_min_throttle() .. function:: void set_limiter_min_throttle(bool value) Whether to keep the throttle above :func:`LandingGuidance::min_throttle` during the landing. :Game Scenes: Flight .. note:: The landing's own setting. The other throttle limits are those of :func:`Utilities::thrust`. .. function:: double min_throttle() .. function:: void set_min_throttle(double value) The smallest throttle during the landing, between 0 and 1. :Game Scenes: Flight .. note:: Requires :func:`LandingGuidance::limiter_min_throttle`.