.. default-domain:: c .. highlight:: c Utilities ========= .. type:: krpc_MechJeb_Utilities_t The Utilities window, which holds the autostaging and throttle settings, and deploys the solar panels and antennas. .. macro:: KRPC_CLASS_MECHJEB_UTILITIES The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_Utilities_Antennas(krpc_connection_t connection, krpc_MechJeb_DeployableController_t * returnValue, krpc_MechJeb_Utilities_t instance) The deployable antennas. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Utilities_SolarPanels(krpc_connection_t connection, krpc_MechJeb_DeployableController_t * returnValue, krpc_MechJeb_Utilities_t instance) The solar panels. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Utilities_Staging(krpc_connection_t connection, krpc_MechJeb_Autostaging_t * returnValue, krpc_MechJeb_Utilities_t instance) The autostaging settings. The same object as :func:`krpc_MechJeb_AscentSettings_Staging`. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Utilities_Thrust(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t * returnValue, krpc_MechJeb_Utilities_t instance) The throttle limiters. The same object as :func:`krpc_MechJeb_AscentSettings_Thrust`. :Game Scenes: Flight Autostaging ----------- .. type:: krpc_MechJeb_Autostaging_t The autostaging settings, which the Utilities and Ascent Settings windows show. .. macro:: KRPC_CLASS_MECHJEB_AUTOSTAGING The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_Autostaging_Enabled(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_Enabled(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, bool value) Whether the module is enabled. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_AutostagingOnce(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_Autostaging_t instance) Whether the controller disables itself after the next staging. :Game Scenes: Flight .. note:: See :func:`krpc_MechJeb_Autostaging_AutostageOnce`. .. function:: krpc_error_t krpc_MechJeb_Autostaging_AutostageOnce(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance) Enable the controller until the next staging. Throws an exception if the controller is enabled. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_AutostageLimit(krpc_connection_t connection, int32_t * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_AutostageLimit(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, int32_t value) The last stage the controller activates. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_AutostagePostDelay(krpc_connection_t connection, double * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_AutostagePostDelay(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, double value) The delay after each staging, in seconds. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_AutostagePreDelay(krpc_connection_t connection, double * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_AutostagePreDelay(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, double value) The delay before each staging, in seconds. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_ClampAutoStageThrustPct(krpc_connection_t connection, double * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_ClampAutoStageThrustPct(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, double value) The fraction of full thrust at which the controller releases the launch clamps. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_FairingMaxAerothermalFlux(krpc_connection_t connection, double * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_FairingMaxAerothermalFlux(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, double value) The largest aerothermal flux at which the controller jettisons a fairing, in :math:`\mathrm{W/m^{2}}`. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_FairingMaxDynamicPressure(krpc_connection_t connection, double * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_FairingMaxDynamicPressure(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, double value) The largest dynamic pressure at which the controller jettisons a fairing, in pascals. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_FairingMinAltitude(krpc_connection_t connection, double * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_FairingMinAltitude(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, double value) The lowest altitude at which the controller jettisons a fairing, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_HotStaging(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_HotStaging(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, bool value) Whether the controller ignites the next stage before the current one burns out. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_Autostaging_HotStagingLeadTime(krpc_connection_t connection, double * returnValue, krpc_MechJeb_Autostaging_t instance) .. function:: krpc_error_t krpc_MechJeb_Autostaging_set_HotStagingLeadTime(krpc_connection_t connection, krpc_MechJeb_Autostaging_t instance, double value) The time before burnout at which a hot staging happens, in seconds. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_Autostaging_HotStaging`. ThrustLimiter ------------- .. type:: krpc_MechJeb_ThrustLimiter_t The throttle limiters, which the Utilities and Ascent Settings windows show. .. macro:: KRPC_CLASS_MECHJEB_THRUSTLIMITER The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_DifferentialThrottle(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_DifferentialThrottle(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether the controller throttles the engines differentially to steer. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_DifferentialThrottleStatus(krpc_connection_t connection, krpc_MechJeb_DifferentialThrottleStatus_t * returnValue, krpc_MechJeb_ThrustLimiter_t instance) The result of the differential throttle. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_ElectricThrottle(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_ElectricThrottle(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to limit the throttle of electric engines to the available power. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_ElectricThrottleHi(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_ElectricThrottleHi(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, double value) The charge level at which electric engines run at full throttle, between 0 and 1. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_ThrustLimiter_ElectricThrottle`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_ElectricThrottleLo(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_ElectricThrottleLo(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, double value) The charge level at which electric engines stop, between 0 and 1. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_ThrustLimiter_ElectricThrottle`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_FlameoutSafetyPct(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_FlameoutSafetyPct(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, double value) The safety margin of the jet engines' air intake, as a percentage. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_ThrustLimiter_LimitToPreventFlameout`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_LimitAcceleration(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_LimitAcceleration(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to limit the acceleration. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_LimitDynamicPressure(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_LimitDynamicPressure(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to limit the dynamic pressure. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_LimitThrottle(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_LimitThrottle(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to limit the throttle. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_LimitToPreventFlameout(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_LimitToPreventFlameout(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to limit the throttle to keep jet engines from flaming out. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_LimitToPreventOverheats(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_LimitToPreventOverheats(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to limit the throttle to keep parts from overheating. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_LimiterMinThrottle(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_LimiterMinThrottle(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to keep the throttle above :func:`krpc_MechJeb_ThrustLimiter_MinThrottle`. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_ManageIntakes(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_ManageIntakes(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether the controller opens and closes the air intakes. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_ThrustLimiter_LimitToPreventFlameout`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_MaxAcceleration(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_MaxAcceleration(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, double value) The largest acceleration, in :math:`\mathrm{m/s^{2}}`. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_ThrustLimiter_LimitAcceleration`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_MaxDynamicPressure(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_MaxDynamicPressure(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, double value) The largest dynamic pressure, in pascals. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_ThrustLimiter_LimitDynamicPressure`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_MaxThrottle(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_MaxThrottle(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, double value) The largest throttle, between 0 and 1. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_ThrustLimiter_LimitThrottle`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_MinThrottle(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_MinThrottle(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, double value) The smallest throttle, between 0 and 1. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_ThrustLimiter_LimiterMinThrottle`. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_LimitToPreventUnstableIgnition(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_LimitToPreventUnstableIgnition(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to hold the throttle at zero while the engines' fuel is unstable. :Game Scenes: Flight .. note:: MechJeb shows this setting only with Real Fuels, as stock engines have stable fuel. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_AutoRCSUllaging(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ThrustLimiter_t instance) .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_set_AutoRCSUllaging(krpc_connection_t connection, krpc_MechJeb_ThrustLimiter_t instance, bool value) Whether to fire the RCS forward to settle the fuel before the engines ignite. :Game Scenes: Flight .. note:: MechJeb shows this setting only with Real Fuels, as stock engines have stable fuel. .. function:: krpc_error_t krpc_MechJeb_ThrustLimiter_Limiter(krpc_connection_t connection, krpc_MechJeb_LimitMode_t * returnValue, krpc_MechJeb_ThrustLimiter_t instance) The limiter that limits the throttle now. :Game Scenes: Flight .. type:: krpc_MechJeb_LimitMode_t A throttle limiter. See :func:`krpc_MechJeb_ThrustLimiter_Limiter`. .. macro:: KRPC_ENUMERATION_MECHJEB_LIMITMODE The service and enumeration ids of the enumeration, for :func:`krpc_KRPC_Type_EnumerationTypeById` and :func:`krpc_KRPC_Expression_ConstantEnumById`. .. macro:: KRPC_MECHJEB_LIMITMODE_NONE No limiter limits the throttle. .. macro:: KRPC_MECHJEB_LIMITMODE_TERMINALVELOCITY The terminal velocity limit. .. macro:: KRPC_MECHJEB_LIMITMODE_TEMPERATURE :func:`krpc_MechJeb_ThrustLimiter_LimitToPreventOverheats`. .. macro:: KRPC_MECHJEB_LIMITMODE_FLAMEOUT :func:`krpc_MechJeb_ThrustLimiter_LimitToPreventFlameout`. .. macro:: KRPC_MECHJEB_LIMITMODE_ACCELERATION :func:`krpc_MechJeb_ThrustLimiter_LimitAcceleration`. .. macro:: KRPC_MECHJEB_LIMITMODE_THROTTLE :func:`krpc_MechJeb_ThrustLimiter_LimitThrottle`. .. macro:: KRPC_MECHJEB_LIMITMODE_DYNAMICPRESSURE :func:`krpc_MechJeb_ThrustLimiter_LimitDynamicPressure`. .. macro:: KRPC_MECHJEB_LIMITMODE_MINTHROTTLE :func:`krpc_MechJeb_ThrustLimiter_LimiterMinThrottle`. .. macro:: KRPC_MECHJEB_LIMITMODE_ELECTRIC :func:`krpc_MechJeb_ThrustLimiter_ElectricThrottle`. .. macro:: KRPC_MECHJEB_LIMITMODE_UNSTABLEIGNITION :func:`krpc_MechJeb_ThrustLimiter_LimitToPreventUnstableIgnition`. .. macro:: KRPC_MECHJEB_LIMITMODE_AUTORCSULLAGE :func:`krpc_MechJeb_ThrustLimiter_AutoRCSUllaging`. .. type:: krpc_MechJeb_DifferentialThrottleStatus_t The result of the differential throttle. See :func:`krpc_MechJeb_ThrustLimiter_DifferentialThrottleStatus`. .. macro:: KRPC_ENUMERATION_MECHJEB_DIFFERENTIALTHROTTLESTATUS The service and enumeration ids of the enumeration, for :func:`krpc_KRPC_Type_EnumerationTypeById` and :func:`krpc_KRPC_Expression_ConstantEnumById`. .. macro:: KRPC_MECHJEB_DIFFERENTIALTHROTTLESTATUS_SUCCESS The throttles balance the thrust. .. macro:: KRPC_MECHJEB_DIFFERENTIALTHROTTLESTATUS_ALLENGINESOFF All the engines are off. .. macro:: KRPC_MECHJEB_DIFFERENTIALTHROTTLESTATUS_MOREENGINESREQUIRED The vessel needs more engines. .. macro:: KRPC_MECHJEB_DIFFERENTIALTHROTTLESTATUS_SOLVERFAILED The solver found no solution. DeployableController -------------------- .. type:: krpc_MechJeb_DeployableController_t The controller of one kind of deployable part, such as antennas or solar panels. .. macro:: KRPC_CLASS_MECHJEB_DEPLOYABLECONTROLLER The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_DeployableController_AllRetracted(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_DeployableController_t instance) Whether all the parts are retracted. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_DeployableController_AutoDeploy(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_DeployableController_t instance) .. function:: krpc_error_t krpc_MechJeb_DeployableController_set_AutoDeploy(krpc_connection_t connection, krpc_MechJeb_DeployableController_t instance, bool value) Whether a MechJeb autopilot deploys the parts. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_DeployableController_ExtendAll(krpc_connection_t connection, krpc_MechJeb_DeployableController_t instance) Extend all the parts. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_DeployableController_RetractAll(krpc_connection_t connection, krpc_MechJeb_DeployableController_t instance) Retract all the parts. :Game Scenes: Flight