.. default-domain:: http .. highlight:: json .. _http-api-parts: Parts ===== The following classes allow interaction with a vessel's individual parts. .. seealso:: The :std:ref:`parts guide ` walks the tree of parts, and explains fuel lines, stage numbers and part modules. .. contents:: :local: Parts ----- .. _http-SpaceCenter.Parts: .. rubric:: Parts Instances of this class are used to interact with the parts of a vessel. An instance can be obtained by calling :http:get:`/space-center/vessel/(id)/parts`. A ``Parts`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/parts/(id)/all A list of all of the vessels parts. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/root The vessels root part. :param id: The identifier of the :ref:`Parts ` object. :resjson SpaceCenter.Part value: .. note:: See the discussion on :rst:ref:`user-guide-parts-tree`. .. http:get:: /space-center/parts/(id)/controlling The part from which the vessel is controlled. Returns ``null`` if the vessel has no control point, in which case it is oriented by its root part. .. note:: A vessel gets no control point when it is created by a decoupler or an undocking and none of its parts is a command module with crew aboard. A probe core does not give it one either. Assign this property to choose the control point, which is equivalent to "Control From Here" in game. :param id: The identifier of the :ref:`Parts ` object. :resjson SpaceCenter.Part? value: .. http:put:: /space-center/parts/(id)/controlling The part from which the vessel is controlled. Returns ``null`` if the vessel has no control point, in which case it is oriented by its root part. .. note:: A vessel gets no control point when it is created by a decoupler or an undocking and none of its parts is a command module with crew aboard. A probe core does not give it one either. Assign this property to choose the control point, which is equivalent to "Control From Here" in game. :param id: The identifier of the :ref:`Parts ` object. :reqjson SpaceCenter.Part? value: The new value. .. http:post:: /space-center/parts/(id)/with-name A list of parts whose :http:get:`/space-center/part/(id)/name` is *name*. :param id: The identifier of the :ref:`Parts ` object. :reqjson string name: The name of the part. :resjson list value: .. http:post:: /space-center/parts/(id)/with-title A list of all parts whose :http:get:`/space-center/part/(id)/title` is *title*. :param id: The identifier of the :ref:`Parts ` object. :reqjson string title: The title of the part. :resjson list value: .. http:post:: /space-center/parts/(id)/with-tag A list of all parts whose :http:get:`/space-center/part/(id)/tag` is *tag*. :param id: The identifier of the :ref:`Parts ` object. :reqjson string tag: The name tag of the part. :resjson list value: .. http:post:: /space-center/parts/(id)/with-module A list of all parts that contain a :ref:`Module ` whose :http:get:`/space-center/module/(id)/name` is *module_name*. :param id: The identifier of the :ref:`Parts ` object. :reqjson string module_name: The name of the module. :resjson list value: .. http:post:: /space-center/parts/(id)/modules-with-name A list of modules (combined across all parts in the vessel) whose :http:get:`/space-center/module/(id)/name` is *module_name*. :param id: The identifier of the :ref:`Parts ` object. :reqjson string module_name: The name of the module. :resjson list value: .. http:get:: /space-center/parts/(id)/antennas A list of all antennas in the vessel. .. note:: A part with several antennas has an entry for each. If RemoteTech is installed, this will always return an empty list. To interact with RemoteTech antennas, use the RemoteTech service APIs. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/cargo-bays A list of all cargo bays in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/control-surfaces A list of all control surfaces in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/decouplers A list of all decouplers in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/docking-ports A list of all docking ports in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/engines A list of all engines in the vessel. .. note:: This includes any part that generates thrust. This covers many different types of engine, including liquid fuel rockets, solid rocket boosters, jet engines and RCS thrusters. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/experiments A list of all science experiments in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/fairings A list of all fairings in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/intakes A list of all intakes in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/legs A list of all landing legs attached to the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/launch-clamps A list of all launch clamps attached to the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/lights A list of all lights in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/parachutes A list of all parachutes in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/radiators A list of all radiators in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/resource-drains A list of all resource drains in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/rcs A list of all RCS blocks/thrusters in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/reaction-wheels A list of all reaction wheels in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/resource-converters A list of all resource converters in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/resource-harvesters A list of all resource harvesters in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/robotic-controllers A list of all robotic controllers in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/robotic-hinges A list of all robotic hinges in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/robotic-pistons A list of all robotic pistons in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/robotic-rotations A list of all robotic rotations in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/robotic-rotors A list of all robotic rotors in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/sensors A list of all sensors in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/solar-panels A list of all solar panels in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: .. http:get:: /space-center/parts/(id)/wheels A list of all wheels in the vessel. :param id: The identifier of the :ref:`Parts ` object. :resjson list value: Part ---- .. _http-SpaceCenter.Part: .. rubric:: Part Represents an individual part. Vessels are made up of multiple parts. Instances of this class can be obtained by several methods in :ref:`Parts `. A ``Part`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/part/(id)/name Internal name of the part, as used in `part cfg files `_. For example "Mark1-2Pod". :param id: The identifier of the :ref:`Part ` object. :resjson string value: .. http:get:: /space-center/part/(id)/title Title of the part, as shown when the part is right clicked in-game. For example "Mk1-2 Command Pod". :param id: The identifier of the :ref:`Part ` object. :resjson string value: .. http:get:: /space-center/part/(id)/config The static configuration of the part, as found in its `part cfg file `_. This provides access to data that is not exposed elsewhere, such as the configuration of the part's modules. Returns ``null`` if the part has no associated configuration node. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.ConfigNode value: .. http:get:: /space-center/part/(id)/tag The name tag for the part. Can be set to a custom string using the in-game user interface. Throws an exception if no name tag part module is installed. .. note:: Requires KSPCommunityPartModules 0.5 or later, or kOS, which share one name tag. :param id: The identifier of the :ref:`Part ` object. :resjson string value: .. http:put:: /space-center/part/(id)/tag The name tag for the part. Can be set to a custom string using the in-game user interface. Throws an exception if no name tag part module is installed. .. note:: Requires KSPCommunityPartModules 0.5 or later, or kOS, which share one name tag. :param id: The identifier of the :ref:`Part ` object. :reqjson string value: The new value. .. http:get:: /space-center/part/(id)/flag-url The asset URL for the part's flag. :param id: The identifier of the :ref:`Part ` object. :resjson string value: .. http:put:: /space-center/part/(id)/flag-url The asset URL for the part's flag. :param id: The identifier of the :ref:`Part ` object. :reqjson string value: The new value. .. http:get:: /space-center/part/(id)/highlighted Whether the part is highlighted. .. note:: The highlighting is removed when the client that enabled it disconnects. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. http:put:: /space-center/part/(id)/highlighted Whether the part is highlighted. .. note:: The highlighting is removed when the client that enabled it disconnects. :param id: The identifier of the :ref:`Part ` object. :reqjson bool value: The new value. .. http:get:: /space-center/part/(id)/highlight-color The color used to highlight the part. :param id: The identifier of the :ref:`Part ` object. :resjson StdLib.ColorRGB value: .. http:put:: /space-center/part/(id)/highlight-color The color used to highlight the part. :param id: The identifier of the :ref:`Part ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /space-center/part/(id)/cost The cost of the part with its resources full, in units of funds. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/vessel The vessel that contains this part. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Vessel value: .. http:get:: /space-center/part/(id)/parent The parts parent. Returns ``null`` if the part does not have a parent. This, in combination with :http:get:`/space-center/part/(id)/children`, can be used to traverse the vessels parts tree. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Part? value: .. note:: See the discussion on :rst:ref:`user-guide-parts-tree`. .. http:get:: /space-center/part/(id)/children The parts children. Returns an empty list if the part has no children. This, in combination with :http:get:`/space-center/part/(id)/parent`, can be used to traverse the vessels parts tree. :param id: The identifier of the :ref:`Part ` object. :resjson list value: .. note:: See the discussion on :rst:ref:`user-guide-parts-tree`. .. http:get:: /space-center/part/(id)/axially-attached Whether the part is axially attached to its parent, i.e. on the top or bottom of its parent. If the part has no parent, returns ``false``. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. note:: See the discussion on :rst:ref:`user-guide-parts-attachment-modes`. .. http:get:: /space-center/part/(id)/radially-attached Whether the part is radially attached to its parent, i.e. on the side of its parent. If the part has no parent, returns ``false``. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. note:: See the discussion on :rst:ref:`user-guide-parts-attachment-modes`. .. http:get:: /space-center/part/(id)/stage The stage in which this part will be activated. Returns -1 if the part is not activated by staging. :param id: The identifier of the :ref:`Part ` object. :resjson int32 value: .. note:: See the discussion on :rst:ref:`user-guide-parts-staging`. .. http:get:: /space-center/part/(id)/decouple-stage The stage in which this part will be decoupled. Returns -1 if the part is never decoupled from the vessel. :param id: The identifier of the :ref:`Part ` object. :resjson int32 value: .. note:: See the discussion on :rst:ref:`user-guide-parts-staging`. .. http:get:: /space-center/part/(id)/massless Whether the part is `massless `_. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. http:get:: /space-center/part/(id)/mass The current mass of the part, including resources it contains, in kilograms. Returns zero if the part is massless. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/dry-mass The mass of the part, not including any resources it contains, in kilograms. Returns zero if the part is massless. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/shielded Whether the part is shielded from the exterior of the vessel, for example by a fairing. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. http:get:: /space-center/part/(id)/dynamic-pressure The dynamic pressure acting on the part, in Pascals. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/static-pressure The static pressure acting on the part, in Pascals. Below the waterline this includes the pressure of the water. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/displacement The volume of water the part displaces when fully submerged, in :math:`\mathrm{m^{3}}`. .. note:: See :http:get:`/space-center/part/(id)/displaced-volume` for the volume it is displacing now. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/buoyancy-multiplier The multiplier applied to the buoyant force on the part. One for most parts. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:post:: /space-center/part/(id)/buoyant-force-at The buoyant force on the part when fully submerged in a fluid of the given density, in Newtons. .. note:: Applies :http:get:`/space-center/buoyancy-scalar` and :http:get:`/space-center/part/(id)/buoyancy-multiplier`, so the result is what the game would do to the part rather than what `Archimedes' principle `_ alone gives. :param id: The identifier of the :ref:`Part ` object. :reqjson double density: The density of the fluid, in :math:`\mathrm{kg/m^{3}}`. :reqjson double gravity: The acceleration due to gravity, in :math:`\mathrm{m/s^{2}}`. :resjson double value: .. http:get:: /space-center/part/(id)/splashed Whether the part is in contact with water. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. http:get:: /space-center/part/(id)/submerged-portion The fraction of the part below the waterline, between 0 and 1. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/displaced-volume The volume of water the part is displacing, in :math:`\mathrm{m^{3}}`. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/depth The depth of the part below the waterline, in meters, measured at :http:post:`/space-center/part/(id)/center-of-displacement`. Negative above the waterline. Returns zero if the body the vessel is at has no ocean. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/min-depth The depth of the shallowest point of the part below the waterline, in meters. Returns zero if the body the vessel is at has no ocean. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/max-depth The depth of the deepest point of the part below the waterline, in meters. Returns zero if the body the vessel is at has no ocean. .. note:: The game ramps the buoyant force in over the first fraction of a meter of this depth. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/submerged-dynamic-pressure The dynamic pressure of the water acting on the part, in Pascals. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/submerged-drag-multiplier The multiplier applied to the drag on the part while it is submerged. .. note:: The game sets this high on splashdown and eases it down as the part moves through the water. It climbs back once the part slows to a crawl, so a hull under way reads lower than one lying still. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/submerged-lift-multiplier The multiplier applied to the lift on the part while it is submerged. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/water-angular-drag-multiplier The multiplier applied to the angular drag on the part while it is submerged. .. note:: Part of the part's configuration rather than a live readout, so it reads the same in the editor and at a body with no ocean. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/impact-tolerance The crash tolerance of the part, in :math:`\mathrm{m/s}`. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/breaking-force The breaking force of the part's attachments, in :math:`\mathrm{kN}`. .. note:: The joint to the parent part takes the lower breaking force of the two parts, scaled by the size of the attachment node. See :http:get:`/space-center/part/(id)/joint-break-force`. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/breaking-torque The breaking torque of the part's attachments, in :math:`\mathrm{kN \cdot m}`. .. note:: The joint to the parent part takes the lower breaking torque of the two parts, scaled by the size of the attachment node. See :http:get:`/space-center/part/(id)/joint-break-torque`. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/joint-break-force The force that breaks the joint to the parent part, in :math:`\mathrm{kN}`. Throws an exception if the part has no joint to its parent part. .. note:: The sum over the joint's physics joints. It is infinite for a short time after the vessel loads, such as just after launch. The root part and a physicsless part have no joint to their parent. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/joint-break-torque The torque that breaks the joint to the parent part, in :math:`\mathrm{kN \cdot m}`. Throws an exception if the part has no joint to its parent part. .. note:: The sum over the joint's physics joints. It is infinite for a short time after the vessel loads. On a stack node of size 2 or more, the physics joints sit apart around the node. A bending moment then breaks the joint when one physics joint's force exceeds its share of :http:get:`/space-center/part/(id)/joint-break-force`, usually at a much larger moment than this torque. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/joint-spring The spring constant of the joint to the parent part against translation, in :math:`\mathrm{kN/m}`. Throws an exception if the part has no joint to its parent part. .. note:: The sum over the joint's physics joints. A rigid attachment locks the joint, and this spring then has no effect. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/joint-damper The damping constant of the joint to the parent part against translation, in :math:`\mathrm{kN \cdot s/m}`. Throws an exception if the part has no joint to its parent part. .. note:: The sum over the joint's physics joints. The stock game sets it to zero, and mods such as Kerbal Joint Reinforcement change it. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/joint-angular-spring The spring constant of the joint to the parent part against bending, in :math:`\mathrm{kN \cdot m/rad}`. Throws an exception if the part has no joint to its parent part. .. note:: The sum over the joint's physics joints, about the two axes perpendicular to the joint axis. The joint is far stiffer against twisting about its axis. On a stack node of size 2 or more, the physics joints sit apart around the node, and the joint bends much less than this spring gives. A rigid attachment makes it infinite. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/joint-angular-damper The damping constant of the joint to the parent part against bending, in :math:`\mathrm{kN \cdot m \cdot s/rad}`. Throws an exception if the part has no joint to its parent part. .. note:: The sum over the joint's physics joints. The stock game sets it to zero, and mods such as Kerbal Joint Reinforcement change it. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/temperature Temperature of the part, in Kelvin. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/skin-temperature Temperature of the skin of the part, in Kelvin. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/max-temperature Maximum temperature that the part can survive, in Kelvin. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/max-skin-temperature Maximum temperature that the skin of the part can survive, in Kelvin. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/max-pressure Maximum pressure that the part can survive, in Pascals. .. note:: With part pressure limits enabled in the difficulty settings, the part is destroyed when :http:get:`/space-center/part/(id)/static-pressure` plus :http:get:`/space-center/part/(id)/dynamic-pressure` exceeds this. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. http:get:: /space-center/part/(id)/thermal-mass A measure of how much energy it takes to increase the internal temperature of the part, in Joules per Kelvin. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/thermal-skin-mass A measure of how much energy it takes to increase the skin temperature of the part, in Joules per Kelvin. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/thermal-resource-mass A measure of how much energy it takes to increase the temperature of the resources contained in the part, in Joules per Kelvin. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/thermal-conduction-flux The rate at which heat energy is conducting into or out of the part via contact with other parts. Measured in energy per unit time, or power, in Watts. A positive value means the part is gaining heat energy, and negative means it is losing heat energy. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/thermal-convection-flux The rate at which heat energy is convecting into or out of the part from the surrounding atmosphere. Measured in energy per unit time, or power, in Watts. A positive value means the part is gaining heat energy, and negative means it is losing heat energy. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/thermal-radiation-flux The rate at which heat energy is radiating into or out of the part from the surrounding environment. Measured in energy per unit time, or power, in Watts. A positive value means the part is gaining heat energy, and negative means it is losing heat energy. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/thermal-internal-flux The rate at which heat energy is begin generated by the part. For example, some engines generate heat by combusting fuel. Measured in energy per unit time, or power, in Watts. A positive value means the part is gaining heat energy, and negative means it is losing heat energy. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/thermal-skin-to-internal-flux The rate at which heat energy is transferring between the part's skin and its internals. Measured in energy per unit time, or power, in Watts. A positive value means the part's internals are gaining heat energy, and negative means its skin is gaining heat energy. :param id: The identifier of the :ref:`Part ` object. :resjson float value: .. http:get:: /space-center/part/(id)/crew-capacity The number of crew members that can occupy the part. :param id: The identifier of the :ref:`Part ` object. :resjson int32 value: .. http:get:: /space-center/part/(id)/crew The crew members occupying the part. :param id: The identifier of the :ref:`Part ` object. :resjson list value: .. http:get:: /space-center/part/(id)/available-seats How many open seats the part has. :param id: The identifier of the :ref:`Part ` object. :resjson uint32 value: .. http:get:: /space-center/part/(id)/resources A :http:get:`/space-center/part/(id)/resources` object for the part. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Resources value: .. http:get:: /space-center/part/(id)/crossfeed Whether this part is crossfeed capable. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. http:get:: /space-center/part/(id)/is-fuel-line Whether this part is a fuel line. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. http:get:: /space-center/part/(id)/fuel-lines-from The parts that are connected to this part via fuel lines, where the direction of the fuel line is into this part. :param id: The identifier of the :ref:`Part ` object. :resjson list value: .. note:: See the discussion on :rst:ref:`user-guide-parts-fuel-lines`. .. http:get:: /space-center/part/(id)/fuel-lines-to The parts that are connected to this part via fuel lines, where the direction of the fuel line is out of this part. :param id: The identifier of the :ref:`Part ` object. :resjson list value: .. note:: See the discussion on :rst:ref:`user-guide-parts-fuel-lines`. .. http:get:: /space-center/part/(id)/modules The modules for this part. :param id: The identifier of the :ref:`Part ` object. :resjson list value: .. http:get:: /space-center/part/(id)/antenna An :http:get:`/space-center/part/(id)/antenna` if the part is an antenna, otherwise ``null``. .. note:: For a part with several antennas, this is the first. :http:get:`/space-center/parts/(id)/antennas` lists them all. If RemoteTech is installed, this will always return ``null``. To interact with RemoteTech antennas, use the RemoteTech service APIs. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Antenna? value: .. http:get:: /space-center/part/(id)/cargo-bay A :http:get:`/space-center/part/(id)/cargo-bay` if the part is a cargo bay, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.CargoBay? value: .. http:get:: /space-center/part/(id)/control-surface A :http:get:`/space-center/part/(id)/control-surface` if the part is an aerodynamic control surface, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.ControlSurface? value: .. http:get:: /space-center/part/(id)/decoupler A :http:get:`/space-center/part/(id)/decoupler` if the part is a decoupler, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Decoupler? value: .. http:get:: /space-center/part/(id)/docking-port A :http:get:`/space-center/part/(id)/docking-port` if the part is a docking port, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.DockingPort? value: .. http:get:: /space-center/part/(id)/engine An :http:get:`/space-center/part/(id)/engine` if the part is an engine, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Engine? value: .. http:get:: /space-center/part/(id)/experiment An :http:get:`/space-center/part/(id)/experiment` if the part contains a single science experiment, otherwise ``null``. .. note:: Throws an exception if the part contains more than one experiment. In that case, use :http:get:`/space-center/part/(id)/experiments` to get the list of experiments in the part. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Experiment? value: .. http:get:: /space-center/part/(id)/experiments A list of :http:get:`/space-center/part/(id)/experiment` objects that the part contains. :param id: The identifier of the :ref:`Part ` object. :resjson list? value: .. http:get:: /space-center/part/(id)/fairing A :http:get:`/space-center/part/(id)/fairing` if the part is a fairing, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Fairing? value: .. http:get:: /space-center/part/(id)/intake An :http:get:`/space-center/part/(id)/intake` if the part is an intake, otherwise ``null``. .. note:: This includes any part that generates thrust. This covers many different types of engine, including liquid fuel rockets, solid rocket boosters and jet engines. For RCS thrusters see :http:get:`/space-center/part/(id)/rcs`. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Intake? value: .. http:get:: /space-center/part/(id)/leg A :http:get:`/space-center/part/(id)/leg` if the part is a landing leg, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Leg? value: .. http:get:: /space-center/part/(id)/launch-clamp A :http:get:`/space-center/part/(id)/launch-clamp` if the part is a launch clamp, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.LaunchClamp? value: .. http:get:: /space-center/part/(id)/light A :http:get:`/space-center/part/(id)/light` if the part is a light, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Light? value: .. http:get:: /space-center/part/(id)/parachute A :http:get:`/space-center/part/(id)/parachute` if the part is a parachute, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Parachute? value: .. http:get:: /space-center/part/(id)/radiator A :http:get:`/space-center/part/(id)/radiator` if the part is a radiator, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Radiator? value: .. http:get:: /space-center/part/(id)/resource-drain A :http:get:`/space-center/part/(id)/resource-drain` if the part is a resource drain, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.ResourceDrain? value: .. http:get:: /space-center/part/(id)/rcs A :http:get:`/space-center/part/(id)/rcs` if the part is an RCS block/thruster, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.RCS? value: .. http:get:: /space-center/part/(id)/reaction-wheel A :http:get:`/space-center/part/(id)/reaction-wheel` if the part is a reaction wheel, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.ReactionWheel? value: .. http:get:: /space-center/part/(id)/resource-converter A :http:get:`/space-center/part/(id)/resource-converter` if the part is a resource converter, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.ResourceConverter? value: .. http:get:: /space-center/part/(id)/resource-harvester A :http:get:`/space-center/part/(id)/resource-harvester` if the part is a resource harvester, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.ResourceHarvester? value: .. http:get:: /space-center/part/(id)/robotic-controller A :http:get:`/space-center/part/(id)/robotic-controller` if the part is a robotic controller, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.RoboticController? value: .. http:get:: /space-center/part/(id)/robotic-hinge A :http:get:`/space-center/part/(id)/robotic-hinge` if the part is a robotic hinge, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.RoboticHinge? value: .. http:get:: /space-center/part/(id)/robotic-piston A :http:get:`/space-center/part/(id)/robotic-piston` if the part is a robotic piston, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.RoboticPiston? value: .. http:get:: /space-center/part/(id)/robotic-rotation A :http:get:`/space-center/part/(id)/robotic-rotation` if the part is a robotic rotation servo, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.RoboticRotation? value: .. http:get:: /space-center/part/(id)/robotic-rotor A :http:get:`/space-center/part/(id)/robotic-rotor` if the part is a robotic rotor, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.RoboticRotor? value: .. http:get:: /space-center/part/(id)/sensor A :http:get:`/space-center/part/(id)/sensor` if the part is a sensor, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Sensor? value: .. http:get:: /space-center/part/(id)/solar-panel A :http:get:`/space-center/part/(id)/solar-panel` if the part is a solar panel, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.SolarPanel? value: .. http:get:: /space-center/part/(id)/wheel A :http:get:`/space-center/part/(id)/wheel` if the part is a wheel, otherwise ``null``. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.Wheel? value: .. http:post:: /space-center/part/(id)/position The position of the part in the given reference frame. .. note:: This is a fixed position in the part, defined by the parts model. It s not necessarily the same as the parts center of mass. Use :http:post:`/space-center/part/(id)/center-of-mass` to get the parts center of mass. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:post:: /space-center/part/(id)/center-of-mass The position of the parts center of mass in the given reference frame. If the part is physicsless in flight, this is equivalent to :http:post:`/space-center/part/(id)/position`. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:post:: /space-center/part/(id)/bounding-box The axis-aligned bounding box of the part in the given reference frame. .. note:: This is computed from the meshes that make up the parts model, and covers only this part - the models of any child parts are excluded. If the part has no visible model, the box has zero volume and is centered on the :http:post:`/space-center/part/(id)/center-of-mass` of the part. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vectors are in. :resjson SpaceCenter.BoundingBox value: The positions of the minimum and maximum vertices of the box. .. http:post:: /space-center/part/(id)/direction The direction the part points in, in the given reference frame. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned direction is in. :resjson tuple value: The direction as a unit vector. .. http:post:: /space-center/part/(id)/velocity The linear velocity of the part in the given reference frame. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned velocity vector is in. :resjson tuple value: The velocity as a vector. The vector points in the direction of travel, and its magnitude is the speed of the body in :math:`\mathrm{m/s}`. .. http:post:: /space-center/part/(id)/rotation The rotation of the part, in the given reference frame. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned rotation is in. :resjson tuple value: The rotation as a quaternion of the form ``(x, y, z, w)``. .. http:post:: /space-center/part/(id)/lift The aerodynamic `lift `_ currently acting on the part. .. note:: Not available when Ferram Aerospace Research is installed. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned vector is in. :resjson tuple value: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. .. http:post:: /space-center/part/(id)/drag The aerodynamic `drag `_ currently acting on the part. .. note:: Not available when Ferram Aerospace Research is installed. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned vector is in. :resjson tuple value: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. .. http:post:: /space-center/part/(id)/center-of-buoyancy The point the buoyant force on the part acts at, in the given reference frame. .. note:: A submerged part reports the point the game applied the force at, which it shifts towards the submerged part of the hull. Any other part reports its configured center of buoyancy. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:post:: /space-center/part/(id)/center-of-displacement The point the depth of the part is measured at, in the given reference frame. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:post:: /space-center/part/(id)/buoyant-force The buoyant force currently acting on the part. .. note:: The buoyant force on its own. The water drag and lift the game applies alongside it are reported by :http:get:`/space-center/part/(id)/submerged-drag-multiplier` and :http:get:`/space-center/part/(id)/submerged-lift-multiplier`. :param id: The identifier of the :ref:`Part ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned vector is in. :resjson tuple value: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. .. http:get:: /space-center/part/(id)/moment-of-inertia The moment of inertia of the part in :math:`\mathrm{kg \cdot m^{2}}` around its center of mass in the parts center of mass reference frame (:http:get:`/space-center/part/(id)/center-of-mass-reference-frame`). :param id: The identifier of the :ref:`Part ` object. :resjson tuple value: .. http:get:: /space-center/part/(id)/inertia-tensor The inertia tensor of the part around its center of mass, in the parts center of mass reference frame (:http:get:`/space-center/part/(id)/center-of-mass-reference-frame`). Returns the 3x3 matrix as a list of elements, in row-major order. :param id: The identifier of the :ref:`Part ` object. :resjson list value: .. http:get:: /space-center/part/(id)/reference-frame The reference frame that is fixed relative to this part, and centered on a fixed position within the part, defined by the parts model. * The origin is at the position of the part, as returned by :http:post:`/space-center/part/(id)/position`. * The axes rotate with the part. * The x, y and z axis directions depend on the design of the part. .. note:: For docking port parts, this reference frame is not necessarily equivalent to the reference frame for the docking port, returned by :http:get:`/space-center/docking-port/(id)/reference-frame`. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.ReferenceFrame value: .. figure:: /images/reference-frames/part.png :align: center Mk1 Command Pod reference frame origin and axes .. http:get:: /space-center/part/(id)/center-of-mass-reference-frame The reference frame that is fixed relative to this part, and centered on its center of mass. * The origin is at the center of mass of the part, as returned by :http:post:`/space-center/part/(id)/center-of-mass`. * The axes rotate with the part. * The x, y and z axis directions depend on the design of the part. .. note:: For docking port parts, this reference frame is not necessarily equivalent to the reference frame for the docking port, returned by :http:get:`/space-center/docking-port/(id)/reference-frame`. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.ReferenceFrame value: .. http:post:: /space-center/part/(id)/add-force .. warning:: Deprecated. Use ``Debug.AddForce`` instead. Exert a constant force on the part, acting at the given position. .. note:: The force is removed when the client that added it disconnects. :param id: The identifier of the :ref:`Part ` object. :reqjson tuple force: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. :reqjson tuple position: The position at which the force acts, as a vector. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the force and position are in. :resjson SpaceCenter.Force value: An object that can be used to remove or modify the force. .. http:post:: /space-center/part/(id)/instantaneous-force .. warning:: Deprecated. Use ``Debug.InstantaneousForce`` instead. Exert an instantaneous force on the part, acting at the given position. .. note:: The force is applied instantaneously in a single physics update. :param id: The identifier of the :ref:`Part ` object. :reqjson tuple force: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. :reqjson tuple position: The position at which the force acts, as a vector. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the force and position are in. .. http:put:: /space-center/part/(id)/glow Whether the part is glowing. :param id: The identifier of the :ref:`Part ` object. :reqjson bool value: The new value. .. http:get:: /space-center/part/(id)/auto-strut-mode Auto-strut mode. :param id: The identifier of the :ref:`Part ` object. :resjson SpaceCenter.AutoStrutMode value: .. http:get:: /space-center/part/(id)/has-real-fuels-tank Whether the part is a fuel tank managed by RealFuels. The remaining properties in this section are only available when it is. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. http:get:: /space-center/part/(id)/highly-pressurized Whether the tank is highly pressurized, which is what a pressure-fed engine needs to draw from (see :http:get:`/space-center/engine/(id)/pressure-fed`). Throws an exception if the part is not a RealFuels fuel tank (see :http:get:`/space-center/part/(id)/has-real-fuels-tank`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Part ` object. :resjson bool value: .. http:get:: /space-center/part/(id)/boiloff-rate The rate at which the tank's cryogenic contents are boiling off, in kilograms per second of in-game time, measured over the last update RealFuels computed it in. The contents keep boiling off under time warp, where that update covers a much longer span of in-game time than a physics frame does. The rate is zero for a tank holding nothing cryogenic, for one still being fed by a launch clamp, whose temperature RealFuels holds down instead, and in the editor. Throws an exception if the part is not a RealFuels fuel tank (see :http:get:`/space-center/part/(id)/has-real-fuels-tank`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Part ` object. :resjson double value: .. _http-SpaceCenter.AutoStrutMode: .. rubric:: AutoStrutMode The state of an auto-strut. :http:get:`/space-center/part/(id)/auto-strut-mode` Passed and returned as the name of one of its values: ``"off"`` Off ``"root"`` Root ``"heaviest"`` Heaviest ``"grandparent"`` Grandparent ``"force_root"`` ForceRoot ``"force_heaviest"`` ForceHeaviest ``"force_grandparent"`` ForceGrandparent .. _http-SpaceCenter.Force: .. rubric:: Force Obtained by calling ``Debug.AddForce``. A ``Force`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/force/(id)/part The part that this force is applied to. :param id: The identifier of the :ref:`Force ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/force/(id)/force-vector The force vector, in Newtons. :param id: The identifier of the :ref:`Force ` object. :resjson tuple value: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. .. http:put:: /space-center/force/(id)/force-vector The force vector, in Newtons. :param id: The identifier of the :ref:`Force ` object. :reqjson tuple value: The new value. .. http:get:: /space-center/force/(id)/position The position at which the force acts, in reference frame :http:get:`/space-center/force/(id)/reference-frame`. :param id: The identifier of the :ref:`Force ` object. :resjson tuple value: The position as a vector. .. http:put:: /space-center/force/(id)/position The position at which the force acts, in reference frame :http:get:`/space-center/force/(id)/reference-frame`. :param id: The identifier of the :ref:`Force ` object. :reqjson tuple value: The new value. .. http:get:: /space-center/force/(id)/reference-frame The reference frame of the force vector and position. :param id: The identifier of the :ref:`Force ` object. :resjson SpaceCenter.ReferenceFrame value: .. http:put:: /space-center/force/(id)/reference-frame The reference frame of the force vector and position. :param id: The identifier of the :ref:`Force ` object. :reqjson SpaceCenter.ReferenceFrame value: The new value. .. http:post:: /space-center/force/(id)/remove Remove the force. .. note:: Any further use of this object throws an exception. :param id: The identifier of the :ref:`Force ` object. Module ------ .. _http-SpaceCenter.Module: .. rubric:: Module This can be used to interact with a specific part module. This includes part modules in stock KSP, and those added by mods. In KSP, each part has zero or more `PartModules `_ associated with it. Each one contains some of the functionality of the part. For example, an engine has a "ModuleEngines" part module that contains all the functionality of an engine. A ``Module`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/module/(id)/name Name of the PartModule. For example, "ModuleEngines". :param id: The identifier of the :ref:`Module ` object. :resjson string value: .. http:get:: /space-center/module/(id)/part The part that contains this module. :param id: The identifier of the :ref:`Module ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/module/(id)/config The static configuration of the module, as found in the part's `cfg file `_. This provides access to data that is not exposed as a field, such as the resources produced by a generator. Returns ``null`` if the module's configuration node cannot be found. :param id: The identifier of the :ref:`Module ` object. :resjson SpaceCenter.ConfigNode value: .. http:get:: /space-center/module/(id)/field-list A list of all the fields of the module, including those not visible in the right-click menu of the part. Filter by :http:get:`/space-center/part-field/(id)/visible` to get just the visible ones. :param id: The identifier of the :ref:`Module ` object. :resjson list value: .. http:get:: /space-center/module/(id)/event-list A list of all the events of the module, including those not currently visible or active. Events are the clickable buttons visible in the right-click menu of the part. Filter by :http:get:`/space-center/part-event/(id)/visible` and :http:get:`/space-center/part-event/(id)/active` to get just the ones shown in the menu. :param id: The identifier of the :ref:`Module ` object. :resjson list value: .. http:get:: /space-center/module/(id)/action-list A list of all the actions of the module. These are the parts actions that can be assigned to action groups in the in-game editor. :param id: The identifier of the :ref:`Module ` object. :resjson list value: .. _http-SpaceCenter.PartField: .. rubric:: PartField A field of a part module. Obtained by calling :http:get:`/space-center/module/(id)/field-list`. .. note:: Setting a field runs the callbacks that the right-click menu of the part runs. A ``PartField`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/part-field/(id)/module The part module that contains this field. :param id: The identifier of the :ref:`PartField ` object. :resjson SpaceCenter.Module value: .. http:get:: /space-center/part-field/(id)/name The identifier of the field. This is stable and does not change between game versions, unlike :http:get:`/space-center/part-field/(id)/gui-name`. :param id: The identifier of the :ref:`PartField ` object. :resjson string value: .. http:get:: /space-center/part-field/(id)/gui-name The name of the field, as displayed in the right-click menu of the part. This may be empty for fields that are not visible in the menu. :param id: The identifier of the :ref:`PartField ` object. :resjson string value: .. http:get:: /space-center/part-field/(id)/visible Whether the field is visible in the right-click menu of the part, in the current scene (flight or editor). :param id: The identifier of the :ref:`PartField ` object. :resjson bool value: .. http:get:: /space-center/part-field/(id)/type The type of the field. :param id: The identifier of the :ref:`PartField ` object. :resjson SpaceCenter.FieldType value: .. http:get:: /space-center/part-field/(id)/value The value of the field, as a string. This works for fields of any type, and returns the same string that is shown in the right-click menu of the part. .. note:: Setting the value using this property is only permitted for string fields. Use the typed properties (:http:get:`/space-center/part-field/(id)/bool-value`, :http:get:`/space-center/part-field/(id)/int-value`, :http:get:`/space-center/part-field/(id)/float-value`, :http:get:`/space-center/part-field/(id)/double-value`) to set fields of other types. :param id: The identifier of the :ref:`PartField ` object. :resjson string value: .. http:put:: /space-center/part-field/(id)/value The value of the field, as a string. This works for fields of any type, and returns the same string that is shown in the right-click menu of the part. .. note:: Setting the value using this property is only permitted for string fields. Use the typed properties (:http:get:`/space-center/part-field/(id)/bool-value`, :http:get:`/space-center/part-field/(id)/int-value`, :http:get:`/space-center/part-field/(id)/float-value`, :http:get:`/space-center/part-field/(id)/double-value`) to set fields of other types. :param id: The identifier of the :ref:`PartField ` object. :reqjson string value: The new value. .. http:get:: /space-center/part-field/(id)/bool-value The value of a boolean field. .. note:: The getter throws an exception if the field is not a boolean field (see :http:get:`/space-center/part-field/(id)/type`). :param id: The identifier of the :ref:`PartField ` object. :resjson bool value: .. http:put:: /space-center/part-field/(id)/bool-value The value of a boolean field. .. note:: The getter throws an exception if the field is not a boolean field (see :http:get:`/space-center/part-field/(id)/type`). :param id: The identifier of the :ref:`PartField ` object. :reqjson bool value: The new value. .. http:get:: /space-center/part-field/(id)/int-value The value of an integer field. .. note:: The getter throws an exception if the field is not an integer field (see :http:get:`/space-center/part-field/(id)/type`). :param id: The identifier of the :ref:`PartField ` object. :resjson int32 value: .. http:put:: /space-center/part-field/(id)/int-value The value of an integer field. .. note:: The getter throws an exception if the field is not an integer field (see :http:get:`/space-center/part-field/(id)/type`). :param id: The identifier of the :ref:`PartField ` object. :reqjson int32 value: The new value. .. http:get:: /space-center/part-field/(id)/float-value The value of a single precision floating point field. .. note:: The getter throws an exception if the field is not a single precision floating point field (see :http:get:`/space-center/part-field/(id)/type`). :param id: The identifier of the :ref:`PartField ` object. :resjson float value: .. http:put:: /space-center/part-field/(id)/float-value The value of a single precision floating point field. .. note:: The getter throws an exception if the field is not a single precision floating point field (see :http:get:`/space-center/part-field/(id)/type`). :param id: The identifier of the :ref:`PartField ` object. :reqjson float value: The new value. .. http:get:: /space-center/part-field/(id)/double-value The value of a double precision floating point field. .. note:: The getter throws an exception if the field is not a double precision floating point field (see :http:get:`/space-center/part-field/(id)/type`). :param id: The identifier of the :ref:`PartField ` object. :resjson double value: .. http:put:: /space-center/part-field/(id)/double-value The value of a double precision floating point field. .. note:: The getter throws an exception if the field is not a double precision floating point field (see :http:get:`/space-center/part-field/(id)/type`). :param id: The identifier of the :ref:`PartField ` object. :reqjson double value: The new value. .. http:post:: /space-center/part-field/(id)/reset Set the value of the field to its original value. .. note:: The original value is the value the field had when the part was loaded. Works for any field, including those not visible in the right-click menu. :param id: The identifier of the :ref:`PartField ` object. .. _http-SpaceCenter.FieldType: .. rubric:: FieldType The type of a part module field. See :http:get:`/space-center/part-field/(id)/type`. Passed and returned as the name of one of its values: ``"boolean"`` A boolean field. Access using :http:get:`/space-center/part-field/(id)/bool-value`. ``"integer"`` An integer field. Access using :http:get:`/space-center/part-field/(id)/int-value`. ``"float"`` A single precision floating point field. Access using :http:get:`/space-center/part-field/(id)/float-value`. ``"double"`` A double precision floating point field. Access using :http:get:`/space-center/part-field/(id)/double-value`. ``"string"`` A string field. Access using :http:get:`/space-center/part-field/(id)/value`. ``"unknown"`` A field whose type is not one of the above. Its value can still be read as a string using :http:get:`/space-center/part-field/(id)/value`. .. _http-SpaceCenter.PartEvent: .. rubric:: PartEvent An event of a part module. Events are the clickable buttons visible in the right-click menu of the part. Obtained by calling :http:get:`/space-center/module/(id)/event-list`. A ``PartEvent`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/part-event/(id)/module The part module that contains this event. :param id: The identifier of the :ref:`PartEvent ` object. :resjson SpaceCenter.Module value: .. http:get:: /space-center/part-event/(id)/name The identifier of the event. This is stable and does not change between game versions, unlike :http:get:`/space-center/part-event/(id)/gui-name`. :param id: The identifier of the :ref:`PartEvent ` object. :resjson string value: .. http:get:: /space-center/part-event/(id)/gui-name The name of the event, as displayed in the right-click menu of the part. :param id: The identifier of the :ref:`PartEvent ` object. :resjson string value: .. http:get:: /space-center/part-event/(id)/visible Whether the event is visible in the right-click menu of the part, in the current scene (flight or editor). :param id: The identifier of the :ref:`PartEvent ` object. :resjson bool value: .. http:get:: /space-center/part-event/(id)/active Whether the event is currently active. :param id: The identifier of the :ref:`PartEvent ` object. :resjson bool value: .. http:post:: /space-center/part-event/(id)/trigger Trigger the event. Equivalent to clicking the button in the right-click menu of the part. :param id: The identifier of the :ref:`PartEvent ` object. .. _http-SpaceCenter.PartAction: .. rubric:: PartAction An action of a part module. These are the part actions that can be assigned to action groups in the in-game editor. Obtained by calling :http:get:`/space-center/module/(id)/action-list`. A ``PartAction`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/part-action/(id)/module The part module that contains this action. :param id: The identifier of the :ref:`PartAction ` object. :resjson SpaceCenter.Module value: .. http:get:: /space-center/part-action/(id)/name The identifier of the action. This is stable and does not change between game versions, unlike :http:get:`/space-center/part-action/(id)/gui-name`. :param id: The identifier of the :ref:`PartAction ` object. :resjson string value: .. http:get:: /space-center/part-action/(id)/gui-name The name of the action, as displayed in the in-game editor. :param id: The identifier of the :ref:`PartAction ` object. :resjson string value: .. http:put:: /space-center/part-action/(id)/activated Activate or deactivate the action. Equivalent to triggering the action from an action group. Set to ``true`` to activate the action, or ``false`` to deactivate it. :param id: The identifier of the :ref:`PartAction ` object. :reqjson bool value: The new value. Config Node ----------- .. _http-SpaceCenter.ConfigNode: .. rubric:: ConfigNode Represents a configuration node, as found in a part's configuration file. A node has a name, a set of named values and a set of child nodes. This is used to access the static configuration of a part or part module, for example via :http:get:`/space-center/part/(id)/config` and :http:get:`/space-center/module/(id)/config`. A ``ConfigNode`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/config-node/(id)/name The name of the configuration node. For example "MODULE". :param id: The identifier of the :ref:`ConfigNode ` object. :resjson string value: .. http:get:: /space-center/config-node/(id)/values The values stored in the node, as a dictionary mapping names to values. .. note:: If a name appears more than once, only the first value is included. Use :http:post:`/space-center/config-node/(id)/find-values` to get all of the values with a given name. :param id: The identifier of the :ref:`ConfigNode ` object. :resjson dictionary value: .. http:post:: /space-center/config-node/(id)/has-value Returns ``true`` if the node has a value with the given name. :param id: The identifier of the :ref:`ConfigNode ` object. :reqjson string name: Name of the value. :resjson bool value: .. http:post:: /space-center/config-node/(id)/get-value Returns the value with the given name. If there is more than one value with the given name, the first is returned. Throws an exception if there is no value with the given name. :param id: The identifier of the :ref:`ConfigNode ` object. :reqjson string name: Name of the value. :resjson string value: .. http:post:: /space-center/config-node/(id)/find-values Returns all of the values with the given name, as a list. :param id: The identifier of the :ref:`ConfigNode ` object. :reqjson string name: Name of the values. :resjson list value: .. http:get:: /space-center/config-node/(id)/nodes The child nodes contained in this node. :param id: The identifier of the :ref:`ConfigNode ` object. :resjson list value: .. http:post:: /space-center/config-node/(id)/has-node Returns ``true`` if the node has a child node with the given name. :param id: The identifier of the :ref:`ConfigNode ` object. :reqjson string name: Name of the child node. :resjson bool value: .. http:post:: /space-center/config-node/(id)/get-node Returns the child node with the given name. If there is more than one child node with the given name, the first is returned. Throws an exception if there is no child node with the given name. :param id: The identifier of the :ref:`ConfigNode ` object. :reqjson string name: Name of the child node. :resjson SpaceCenter.ConfigNode value: .. http:post:: /space-center/config-node/(id)/find-nodes Returns all of the child nodes with the given name, as a list. :param id: The identifier of the :ref:`ConfigNode ` object. :reqjson string name: Name of the child nodes. :resjson list value: Specific Types of Part ---------------------- The following classes provide functionality for specific types of part. .. contents:: :local: Antenna ^^^^^^^ .. note:: If RemoteTech is installed, use the RemoteTech service APIs to interact with antennas. This class covers stock and RealAntennas antennas. .. _http-SpaceCenter.Antenna: .. rubric:: Antenna An antenna. Obtained by calling :http:get:`/space-center/part/(id)/antenna`. A ``Antenna`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/antenna/(id)/part The part object for this antenna. :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/antenna/(id)/state The current state of the antenna. :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.DeployableState value: .. http:get:: /space-center/antenna/(id)/deployable Whether the antenna is deployable. :param id: The identifier of the :ref:`Antenna ` object. :resjson bool value: .. http:get:: /space-center/antenna/(id)/deployed Whether the antenna is deployed. .. note:: Fixed antennas are always deployed. Throws :ref:`KRPC.InvalidOperationException ` if set on a fixed antenna. :param id: The identifier of the :ref:`Antenna ` object. :resjson bool value: .. http:put:: /space-center/antenna/(id)/deployed Whether the antenna is deployed. .. note:: Fixed antennas are always deployed. Throws :ref:`KRPC.InvalidOperationException ` if set on a fixed antenna. :param id: The identifier of the :ref:`Antenna ` object. :reqjson bool value: The new value. .. http:get:: /space-center/antenna/(id)/can-transmit Whether data can be transmitted by this antenna. :param id: The identifier of the :ref:`Antenna ` object. :resjson bool value: .. http:post:: /space-center/antenna/(id)/transmit Transmit data. :param id: The identifier of the :ref:`Antenna ` object. .. http:post:: /space-center/antenna/(id)/cancel Cancel current transmission of data. :param id: The identifier of the :ref:`Antenna ` object. .. http:get:: /space-center/antenna/(id)/allow-partial Whether partial data transmission is permitted. :param id: The identifier of the :ref:`Antenna ` object. :resjson bool value: .. http:put:: /space-center/antenna/(id)/allow-partial Whether partial data transmission is permitted. :param id: The identifier of the :ref:`Antenna ` object. :reqjson bool value: The new value. .. http:get:: /space-center/antenna/(id)/power The power of the antenna. .. note:: Not used by RealAntennas, which replaces the stock range model. :param id: The identifier of the :ref:`Antenna ` object. :resjson double value: .. http:get:: /space-center/antenna/(id)/combinable Whether the antenna can be combined with other antennae on the vessel to boost the power. .. note:: Not used by RealAntennas, which replaces the stock range model. :param id: The identifier of the :ref:`Antenna ` object. :resjson bool value: .. http:get:: /space-center/antenna/(id)/combinable-exponent Exponent used to calculate the combined power of multiple antennae on a vessel. .. note:: Not used by RealAntennas, which replaces the stock range model. :param id: The identifier of the :ref:`Antenna ` object. :resjson double value: .. http:get:: /space-center/antenna/(id)/packet-interval Interval between sending packets in seconds. :param id: The identifier of the :ref:`Antenna ` object. :resjson float value: .. http:get:: /space-center/antenna/(id)/packet-size Amount of data sent per packet in Mits. :param id: The identifier of the :ref:`Antenna ` object. :resjson float value: .. http:get:: /space-center/antenna/(id)/packet-resource-cost Units of electric charge consumed per packet sent. :param id: The identifier of the :ref:`Antenna ` object. :resjson double value: .. http:get:: /space-center/antenna/(id)/gain The gain of the antenna, in :math:`\mathrm{dBi}`. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson float value: .. http:get:: /space-center/antenna/(id)/transmit-power Returns the transmit power of the antenna, in :math:`\mathrm{dBm}`, and sets it in the editor. Throws an exception if set in flight, or outside zero to :http:get:`/space-center/antenna/(id)/max-transmit-power`. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson float value: .. http:put:: /space-center/antenna/(id)/transmit-power Returns the transmit power of the antenna, in :math:`\mathrm{dBm}`, and sets it in the editor. Throws an exception if set in flight, or outside zero to :http:get:`/space-center/antenna/(id)/max-transmit-power`. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :reqjson float value: The new value. .. http:get:: /space-center/antenna/(id)/max-transmit-power The largest transmit power the antenna can be set to, in :math:`\mathrm{dBm}`. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson float value: .. http:get:: /space-center/antenna/(id)/tech-level Returns the tech level of the antenna, and sets it in the editor. Throws an exception if set in flight, or outside zero to :http:get:`/space-center/antenna/(id)/max-tech-level`. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson int32 value: .. http:put:: /space-center/antenna/(id)/tech-level Returns the tech level of the antenna, and sets it in the editor. Throws an exception if set in flight, or outside zero to :http:get:`/space-center/antenna/(id)/max-tech-level`. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :reqjson int32 value: The new value. .. http:get:: /space-center/antenna/(id)/max-tech-level The highest tech level the antenna can be set to. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson int32 value: .. http:get:: /space-center/antenna/(id)/band The name of the radio frequency band the antenna uses, e.g. ``"S"``. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson string value: .. http:get:: /space-center/antenna/(id)/frequency The frequency of the antenna's band, in Hz. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson double value: .. http:get:: /space-center/antenna/(id)/data-rate The highest data rate the antenna supports, in bits per second. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson double value: .. http:get:: /space-center/antenna/(id)/beamwidth The half-power beamwidth of the antenna, in degrees. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson double value: .. http:get:: /space-center/antenna/(id)/idle-power-draw The power the antenna draws while idle, in watts. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson double value: .. http:get:: /space-center/antenna/(id)/active-power-draw The power the antenna draws while transmitting, in watts. This includes :http:get:`/space-center/antenna/(id)/idle-power-draw`. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson double value: .. http:get:: /space-center/antenna/(id)/enabled Returns whether the antenna is enabled, and sets it in the editor. Throws an exception if set in flight. .. note:: Requires RealAntennas. A disabled antenna does not communicate and draws no power. :param id: The identifier of the :ref:`Antenna ` object. :resjson bool value: .. http:put:: /space-center/antenna/(id)/enabled Returns whether the antenna is enabled, and sets it in the editor. Throws an exception if set in flight. .. note:: Requires RealAntennas. A disabled antenna does not communicate and draws no power. :param id: The identifier of the :ref:`Antenna ` object. :reqjson bool value: The new value. .. http:post:: /space-center/antenna/(id)/disable-permanently Disable the antenna for the rest of the flight. It then draws no power. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. .. http:get:: /space-center/antenna/(id)/can-target Whether the antenna can be pointed at a target. Omnidirectional antennas cannot. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson bool value: .. http:get:: /space-center/antenna/(id)/target-mode The kind of target the antenna points at. .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.AntennaTargetMode value: .. http:get:: /space-center/antenna/(id)/target-vessel Returns the vessel the antenna points at, and sets the vessel to point at. .. note:: Requires RealAntennas. ``null`` if the antenna does not point at a vessel. Throws an exception if set to ``null``, or if the antenna cannot be pointed (see :http:get:`/space-center/antenna/(id)/can-target`). :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.Vessel? value: .. http:put:: /space-center/antenna/(id)/target-vessel Returns the vessel the antenna points at, and sets the vessel to point at. .. note:: Requires RealAntennas. ``null`` if the antenna does not point at a vessel. Throws an exception if set to ``null``, or if the antenna cannot be pointed (see :http:get:`/space-center/antenna/(id)/can-target`). :param id: The identifier of the :ref:`Antenna ` object. :reqjson SpaceCenter.Vessel? value: The new value. .. http:get:: /space-center/antenna/(id)/target-body Returns the body the antenna points at, and sets the body to point at the center of. .. note:: Requires RealAntennas. Also the body of a position the antenna points at, or ``null`` if it points at neither. Throws an exception if set to ``null``, or if the antenna cannot be pointed (see :http:get:`/space-center/antenna/(id)/can-target`). :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.CelestialBody? value: .. http:put:: /space-center/antenna/(id)/target-body Returns the body the antenna points at, and sets the body to point at the center of. .. note:: Requires RealAntennas. Also the body of a position the antenna points at, or ``null`` if it points at neither. Throws an exception if set to ``null``, or if the antenna cannot be pointed (see :http:get:`/space-center/antenna/(id)/can-target`). :param id: The identifier of the :ref:`Antenna ` object. :reqjson SpaceCenter.CelestialBody? value: The new value. .. http:post:: /space-center/antenna/(id)/target-direction The direction the antenna points in, in the given reference frame. Throws an exception if the antenna has no target (see :http:get:`/space-center/antenna/(id)/target-mode`). .. note:: Requires RealAntennas. :param id: The identifier of the :ref:`Antenna ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned direction is in. :resjson tuple value: The direction as a unit vector. .. http:post:: /space-center/antenna/(id)/set-target-position Point the antenna at a position on or above a body. .. note:: Requires RealAntennas. Throws an exception if the antenna cannot be pointed (see :http:get:`/space-center/antenna/(id)/can-target`). :param id: The identifier of the :ref:`Antenna ` object. :reqjson SpaceCenter.CelestialBody body: The body. :reqjson double latitude: The latitude, in degrees. :reqjson double longitude: The longitude, in degrees. :reqjson double altitude: The altitude above sea level, in meters. .. http:post:: /space-center/antenna/(id)/set-target-azimuth-elevation Point the antenna in a direction relative to the vessel's position on the surface. .. note:: Requires RealAntennas. Throws an exception if the antenna cannot be pointed (see :http:get:`/space-center/antenna/(id)/can-target`). :param id: The identifier of the :ref:`Antenna ` object. :reqjson double azimuth: The azimuth, in degrees clockwise from north, from 0 to 360. :reqjson double elevation: The elevation above the horizon, in degrees, from -90 to 90. .. http:post:: /space-center/antenna/(id)/set-target-orbit-relative Point the antenna in a direction relative to the vessel's orbital velocity. .. note:: Requires RealAntennas. Throws an exception if the antenna cannot be pointed (see :http:get:`/space-center/antenna/(id)/can-target`). :param id: The identifier of the :ref:`Antenna ` object. :reqjson double deflection: The angle from the orbital velocity in the orbital plane, in degrees, from -180 to 180. :reqjson double elevation: The angle out of the orbital plane, in degrees, from -90 to 90. .. _http-SpaceCenter.AntennaTargetMode: .. rubric:: AntennaTargetMode The kind of target a RealAntennas antenna points at. See :http:get:`/space-center/antenna/(id)/target-mode`. Passed and returned as the name of one of its values: ``"none"`` The antenna has no target. Omnidirectional antennas have none. ``"vessel"`` A vessel. See :http:get:`/space-center/antenna/(id)/target-vessel`. ``"body"`` The center of a body. See :http:get:`/space-center/antenna/(id)/target-body`. ``"position"`` A position on or above a body. See :http:post:`/space-center/antenna/(id)/set-target-position`. ``"azimuth_elevation"`` An azimuth and elevation from the vessel's position. See :http:post:`/space-center/antenna/(id)/set-target-azimuth-elevation`. ``"orbit_relative"`` A direction relative to the vessel's orbital velocity. See :http:post:`/space-center/antenna/(id)/set-target-orbit-relative`. Cargo Bay ^^^^^^^^^ .. _http-SpaceCenter.CargoBay: .. rubric:: CargoBay A cargo bay. Obtained by calling :http:get:`/space-center/part/(id)/cargo-bay`. A ``CargoBay`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/cargo-bay/(id)/part The part object for this cargo bay. :param id: The identifier of the :ref:`CargoBay ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/cargo-bay/(id)/state The state of the cargo bay. .. note:: This describes where the bay's doors are, which is not the same as whether the parts inside are sheltered: a bay whose open end has nothing attached to it never shelters anything, however tightly shut it is. Use :http:get:`/space-center/part/(id)/shielded` for that. A cargo bay is never ``"broken"``, as the game does not track damage for them. :param id: The identifier of the :ref:`CargoBay ` object. :resjson SpaceCenter.DeployableState value: .. http:get:: /space-center/cargo-bay/(id)/open Whether the cargo bay is open. :param id: The identifier of the :ref:`CargoBay ` object. :resjson bool value: .. http:put:: /space-center/cargo-bay/(id)/open Whether the cargo bay is open. :param id: The identifier of the :ref:`CargoBay ` object. :reqjson bool value: The new value. Control Surface ^^^^^^^^^^^^^^^ .. _http-SpaceCenter.ControlSurface: .. rubric:: ControlSurface An aerodynamic control surface. Obtained by calling :http:get:`/space-center/part/(id)/control-surface`. A ``ControlSurface`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/control-surface/(id)/part The part object for this control surface. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/control-surface/(id)/pitch-enabled Whether the control surface has pitch control enabled. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson bool value: .. http:put:: /space-center/control-surface/(id)/pitch-enabled Whether the control surface has pitch control enabled. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson bool value: The new value. .. http:get:: /space-center/control-surface/(id)/yaw-enabled Whether the control surface has yaw control enabled. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson bool value: .. http:put:: /space-center/control-surface/(id)/yaw-enabled Whether the control surface has yaw control enabled. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson bool value: The new value. .. http:get:: /space-center/control-surface/(id)/roll-enabled Whether the control surface has roll control enabled. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson bool value: .. http:put:: /space-center/control-surface/(id)/roll-enabled Whether the control surface has roll control enabled. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson bool value: The new value. .. http:get:: /space-center/control-surface/(id)/authority-limiter The authority limiter for the control surface, which controls how far the control surface will move. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:put:: /space-center/control-surface/(id)/authority-limiter The authority limiter for the control surface, which controls how far the control surface will move. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson float value: The new value. .. http:get:: /space-center/control-surface/(id)/inverted Whether the control surface movement is inverted. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson bool value: .. http:put:: /space-center/control-surface/(id)/inverted Whether the control surface movement is inverted. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson bool value: The new value. .. http:get:: /space-center/control-surface/(id)/deployed Whether the control surface has been fully deployed. Throws an exception if set while :http:get:`/space-center/control-surface/(id)/deflection-override` is enabled, which holds the surface deployed. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson bool value: .. http:put:: /space-center/control-surface/(id)/deployed Whether the control surface has been fully deployed. Throws an exception if set while :http:get:`/space-center/control-surface/(id)/deflection-override` is enabled, which holds the surface deployed. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson bool value: The new value. .. http:get:: /space-center/control-surface/(id)/deploy-angle The deploy angle of the control surface, in degrees. .. note:: Applied when :http:get:`/space-center/control-surface/(id)/deployed` is true, and clamped to the range given by :http:get:`/space-center/control-surface/(id)/min-deploy-angle` and :http:get:`/space-center/control-surface/(id)/max-deploy-angle`. While :http:get:`/space-center/control-surface/(id)/deflection-override` is enabled, :http:get:`/space-center/control-surface/(id)/deflection` drives the angle. A value set here takes effect when the override is released. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:put:: /space-center/control-surface/(id)/deploy-angle The deploy angle of the control surface, in degrees. .. note:: Applied when :http:get:`/space-center/control-surface/(id)/deployed` is true, and clamped to the range given by :http:get:`/space-center/control-surface/(id)/min-deploy-angle` and :http:get:`/space-center/control-surface/(id)/max-deploy-angle`. While :http:get:`/space-center/control-surface/(id)/deflection-override` is enabled, :http:get:`/space-center/control-surface/(id)/deflection` drives the angle. A value set here takes effect when the override is released. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson float value: The new value. .. http:get:: /space-center/control-surface/(id)/min-deploy-angle The minimum :http:get:`/space-center/control-surface/(id)/deploy-angle` of the control surface, in degrees. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:get:: /space-center/control-surface/(id)/max-deploy-angle The maximum :http:get:`/space-center/control-surface/(id)/deploy-angle` of the control surface, in degrees. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:get:: /space-center/control-surface/(id)/deflection-override Whether the control surface deflection is being set directly, bypassing the vessel's normal flight control. When enabled, the surface holds the deflection set by :http:get:`/space-center/control-surface/(id)/deflection` instead of responding to pitch, yaw and roll control inputs. The prior state is restored when the override is released, when the controlling client disconnects, or when the vessel changes. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson bool value: .. http:put:: /space-center/control-surface/(id)/deflection-override Whether the control surface deflection is being set directly, bypassing the vessel's normal flight control. When enabled, the surface holds the deflection set by :http:get:`/space-center/control-surface/(id)/deflection` instead of responding to pitch, yaw and roll control inputs. The prior state is restored when the override is released, when the controlling client disconnects, or when the vessel changes. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson bool value: The new value. .. http:get:: /space-center/control-surface/(id)/deflection The deflection command applied when :http:get:`/space-center/control-surface/(id)/deflection-override` is enabled, as a value between -1 and 1, mapped onto the surface's deploy angle range. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:put:: /space-center/control-surface/(id)/deflection The deflection command applied when :http:get:`/space-center/control-surface/(id)/deflection-override` is enabled, as a value between -1 and 1, mapped onto the surface's deploy angle range. :param id: The identifier of the :ref:`ControlSurface ` object. :reqjson float value: The new value. .. http:get:: /space-center/control-surface/(id)/deflection-angle The current angle of the control surface from its neutral position, in degrees. Includes the :http:get:`/space-center/control-surface/(id)/deploy-angle` while the surface is deployed. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:get:: /space-center/control-surface/(id)/control-range The angle the control surface deflects by for a full control input, in degrees, before the :http:get:`/space-center/control-surface/(id)/authority-limiter` is applied. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:get:: /space-center/control-surface/(id)/actuator-speed The rate the control surface deflects at, in degrees per second. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:get:: /space-center/control-surface/(id)/surface-area Surface area of the control surface in :math:`\mathrm{m^{2}}`. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson float value: .. http:get:: /space-center/control-surface/(id)/available-torque The available torque, in :math:`\mathrm{N \cdot m}`, that can be produced by this control surface, in the positive and negative pitch, roll and yaw axes of the vessel. These axes correspond to the coordinate axes of the :http:get:`/space-center/vessel/(id)/reference-frame`. :param id: The identifier of the :ref:`ControlSurface ` object. :resjson SpaceCenter.AxisRange value: Decoupler ^^^^^^^^^ .. _http-SpaceCenter.Decoupler: .. rubric:: Decoupler A decoupler. Obtained by calling :http:get:`/space-center/part/(id)/decoupler` A ``Decoupler`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/decoupler/(id)/part The part object for this decoupler. :param id: The identifier of the :ref:`Decoupler ` object. :resjson SpaceCenter.Part value: .. http:post:: /space-center/decoupler/(id)/decouple Fires the decoupler. Returns the new vessel created when the decoupler fires. Throws an exception if the decoupler has already fired. .. note:: When called, the active vessel may change. It is therefore possible that, after calling this function, the object(s) returned by previous call(s) to :http:get:`/space-center/active-vessel` no longer refer to the active vessel. :param id: The identifier of the :ref:`Decoupler ` object. :resjson SpaceCenter.Vessel value: .. http:get:: /space-center/decoupler/(id)/decoupled Whether the decoupler has fired. :param id: The identifier of the :ref:`Decoupler ` object. :resjson bool value: .. http:get:: /space-center/decoupler/(id)/staged Whether the decoupler is enabled in the staging sequence. :param id: The identifier of the :ref:`Decoupler ` object. :resjson bool value: .. http:get:: /space-center/decoupler/(id)/impulse The impulse that the decoupler imparts when it is fired, in :math:`\mathrm{N \cdot s}`. :param id: The identifier of the :ref:`Decoupler ` object. :resjson float value: .. http:get:: /space-center/decoupler/(id)/is-omni-decoupler Whether the decoupler is an omni-decoupler (e.g. stack separator) :param id: The identifier of the :ref:`Decoupler ` object. :resjson bool value: .. http:get:: /space-center/decoupler/(id)/attached-part The part attached to this decoupler's explosive node. :param id: The identifier of the :ref:`Decoupler ` object. :resjson SpaceCenter.Part? value: Deployable State ^^^^^^^^^^^^^^^^ The deployment state shared by antennas, cargo bays, landing legs, radiators, resource harvesters, solar panels and wheels. .. _http-SpaceCenter.DeployableState: .. rubric:: DeployableState The state of a deployable part. :http:get:`/space-center/antenna/(id)/state`, :http:get:`/space-center/cargo-bay/(id)/state`, :http:get:`/space-center/leg/(id)/state`, :http:get:`/space-center/radiator/(id)/state`, :http:get:`/space-center/resource-harvester/(id)/state`, :http:get:`/space-center/solar-panel/(id)/state`, :http:get:`/space-center/wheel/(id)/state` Passed and returned as the name of one of its values: ``"deployed"`` The part is fully deployed. A cargo bay in this state is fully open. Parts that cannot be retracted, such as fixed radiators, solar panels, antennas, landing legs and wheels, are always in this state. ``"retracted"`` The part is fully retracted. A cargo bay in this state is closed and locked. ``"deploying"`` The part is being deployed. A cargo bay in this state is opening. ``"retracting"`` The part is being retracted. A cargo bay in this state is closing. ``"broken"`` The part is broken. Cargo bays and resource harvesters never report this state, as the game does not track damage for them. Docking Port ^^^^^^^^^^^^ .. _http-SpaceCenter.DockingPort: .. rubric:: DockingPort A docking port. Obtained by calling :http:get:`/space-center/part/(id)/docking-port` A ``DockingPort`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/docking-port/(id)/part The part object for this docking port. :param id: The identifier of the :ref:`DockingPort ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/docking-port/(id)/state The current state of the docking port. :param id: The identifier of the :ref:`DockingPort ` object. :resjson SpaceCenter.DockingPortState value: .. http:get:: /space-center/docking-port/(id)/docked-part The part that this docking port is docked to. Returns ``null`` if this docking port is not docked to anything. :param id: The identifier of the :ref:`DockingPort ` object. :resjson SpaceCenter.Part? value: .. http:post:: /space-center/docking-port/(id)/undock Undocks the docking port and returns the new :ref:`Vessel ` that is created. This method can be called for either docking port in a docked pair. Throws an exception if the docking port is not docked to anything. .. note:: When called, the active vessel may change. It is therefore possible that, after calling this function, the object(s) returned by previous call(s) to :http:get:`/space-center/active-vessel` no longer refer to the active vessel. :param id: The identifier of the :ref:`DockingPort ` object. :resjson SpaceCenter.Vessel value: .. http:get:: /space-center/docking-port/(id)/reengage-distance The distance a docking port must move away when it undocks before it becomes ready to dock with another port, in meters. :param id: The identifier of the :ref:`DockingPort ` object. :resjson float value: .. http:get:: /space-center/docking-port/(id)/has-shield Whether the docking port has a shield. :param id: The identifier of the :ref:`DockingPort ` object. :resjson bool value: .. http:get:: /space-center/docking-port/(id)/shielded The state of the docking ports shield, if it has one. Returns ``true`` if the docking port has a shield, and the shield is closed. Otherwise returns ``false``. When set to ``true``, the shield is closed, and when set to ``false`` the shield is opened. If the docking port does not have a shield, setting this attribute has no effect. :param id: The identifier of the :ref:`DockingPort ` object. :resjson bool value: .. http:put:: /space-center/docking-port/(id)/shielded The state of the docking ports shield, if it has one. Returns ``true`` if the docking port has a shield, and the shield is closed. Otherwise returns ``false``. When set to ``true``, the shield is closed, and when set to ``false`` the shield is opened. If the docking port does not have a shield, setting this attribute has no effect. :param id: The identifier of the :ref:`DockingPort ` object. :reqjson bool value: The new value. .. http:get:: /space-center/docking-port/(id)/can-rotate Whether the docking port can be commanded to rotate while docked. :param id: The identifier of the :ref:`DockingPort ` object. :resjson bool value: .. http:get:: /space-center/docking-port/(id)/maximum-rotation Maximum rotation angle in degrees. :param id: The identifier of the :ref:`DockingPort ` object. :resjson float value: .. http:get:: /space-center/docking-port/(id)/minimum-rotation Minimum rotation angle in degrees. :param id: The identifier of the :ref:`DockingPort ` object. :resjson float value: .. http:get:: /space-center/docking-port/(id)/rotation-target Rotation target angle in degrees. :param id: The identifier of the :ref:`DockingPort ` object. :resjson float value: .. http:put:: /space-center/docking-port/(id)/rotation-target Rotation target angle in degrees. :param id: The identifier of the :ref:`DockingPort ` object. :reqjson float value: The new value. .. http:get:: /space-center/docking-port/(id)/rotation-locked Lock rotation. When locked, allows auto-strut to work across the joint. :param id: The identifier of the :ref:`DockingPort ` object. :resjson bool value: .. http:put:: /space-center/docking-port/(id)/rotation-locked Lock rotation. When locked, allows auto-strut to work across the joint. :param id: The identifier of the :ref:`DockingPort ` object. :reqjson bool value: The new value. .. http:post:: /space-center/docking-port/(id)/position The position of the docking port, in the given reference frame. :param id: The identifier of the :ref:`DockingPort ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:post:: /space-center/docking-port/(id)/direction The direction that docking port points in, in the given reference frame. :param id: The identifier of the :ref:`DockingPort ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned direction is in. :resjson tuple value: The direction as a unit vector. .. http:post:: /space-center/docking-port/(id)/rotation The rotation of the docking port, in the given reference frame. :param id: The identifier of the :ref:`DockingPort ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned rotation is in. :resjson tuple value: The rotation as a quaternion of the form ``(x, y, z, w)``. .. http:get:: /space-center/docking-port/(id)/reference-frame The reference frame that is fixed relative to this docking port, and oriented with the port. * The origin is at the position of the docking port. * The axes rotate with the docking port. * The x-axis points out to the right side of the docking port. * The y-axis points in the direction the docking port is facing. * The z-axis points out of the bottom off the docking port. .. note:: This reference frame is not necessarily equivalent to the reference frame for the part, returned by :http:get:`/space-center/part/(id)/reference-frame`. :param id: The identifier of the :ref:`DockingPort ` object. :resjson SpaceCenter.ReferenceFrame value: .. figure:: /images/reference-frames/docking-port.png :align: center Docking port reference frame origin and axes .. figure:: /images/reference-frames/docking-port-inline.png :align: center Inline docking port reference frame origin and axes .. _http-SpaceCenter.DockingPortState: .. rubric:: DockingPortState The state of a docking port. See :http:get:`/space-center/docking-port/(id)/state`. Passed and returned as the name of one of its values: ``"ready"`` The docking port is ready to dock to another docking port. ``"docked"`` The docking port is docked to another docking port, or docked to another part (from the VAB/SPH). ``"docking"`` The docking port is very close to another docking port, but has not docked. It is using magnetic force to acquire a solid dock. ``"undocking"`` The docking port has just been undocked from another docking port, and is disabled until it moves away by a sufficient distance (:http:get:`/space-center/docking-port/(id)/reengage-distance`). ``"shielded"`` The docking port has a shield, and the shield is closed. ``"moving"`` The docking ports shield is currently opening/closing. Engine ^^^^^^ .. _http-SpaceCenter.Engine: .. rubric:: Engine An engine, including ones of various types. For example liquid fuelled gimballed engines, solid rocket boosters and jet engines. Obtained by calling :http:get:`/space-center/part/(id)/engine`. .. note:: For RCS thrusters :http:get:`/space-center/part/(id)/rcs`. A ``Engine`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/engine/(id)/part The part object for this engine. :param id: The identifier of the :ref:`Engine ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/engine/(id)/active Whether the engine is active. Setting this attribute may have no effect, depending on :http:get:`/space-center/engine/(id)/can-shutdown` and :http:get:`/space-center/engine/(id)/can-restart`. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/active Whether the engine is active. Setting this attribute may have no effect, depending on :http:get:`/space-center/engine/(id)/can-shutdown` and :http:get:`/space-center/engine/(id)/can-restart`. :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:get:: /space-center/engine/(id)/thrust The current amount of thrust being produced by the engine, in Newtons. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:get:: /space-center/engine/(id)/available-thrust The amount of thrust, in Newtons, that would be produced by the engine when activated and with its throttle set to 100%. Returns zero if the engine does not have any fuel. Takes the engine's current :http:get:`/space-center/engine/(id)/thrust-limit` and atmospheric conditions into account. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:post:: /space-center/engine/(id)/available-thrust-at The amount of thrust, in Newtons, that would be produced by the engine when activated and with its throttle set to 100%. Returns zero if the engine does not have any fuel. Takes the given pressure into account. :param id: The identifier of the :ref:`Engine ` object. :reqjson double pressure: Atmospheric pressure in atmospheres :resjson float value: .. http:get:: /space-center/engine/(id)/max-thrust The amount of thrust, in Newtons, that would be produced by the engine when activated and fueled, with its throttle and throttle limiter set to 100%. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:post:: /space-center/engine/(id)/max-thrust-at The amount of thrust, in Newtons, that would be produced by the engine when activated and fueled, with its throttle and throttle limiter set to 100%. Takes the given pressure into account. :param id: The identifier of the :ref:`Engine ` object. :reqjson double pressure: Atmospheric pressure in atmospheres :resjson float value: .. http:get:: /space-center/engine/(id)/max-vacuum-thrust The maximum amount of thrust that can be produced by the engine in a vacuum, in Newtons. This is the amount of thrust produced by the engine when activated, :http:get:`/space-center/engine/(id)/thrust-limit` is set to 100%, the main vessel's throttle is set to 100% and the engine is in a vacuum. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:get:: /space-center/engine/(id)/thrust-limit The thrust limiter of the engine. A value between 0 and 1. Setting this attribute may have no effect, for example the thrust limit for a solid rocket booster cannot be changed in flight. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:put:: /space-center/engine/(id)/thrust-limit The thrust limiter of the engine. A value between 0 and 1. Setting this attribute may have no effect, for example the thrust limit for a solid rocket booster cannot be changed in flight. :param id: The identifier of the :ref:`Engine ` object. :reqjson float value: The new value. .. http:get:: /space-center/engine/(id)/thrusters The components of the engine that generate thrust. .. note:: For example, this corresponds to the rocket nozzel on a solid rocket booster, or the individual nozzels on a RAPIER engine. The overall thrust produced by the engine, as reported by :http:get:`/space-center/engine/(id)/available-thrust`, :http:get:`/space-center/engine/(id)/max-thrust` and others, is the sum of the thrust generated by each thruster. :param id: The identifier of the :ref:`Engine ` object. :resjson list value: .. http:get:: /space-center/engine/(id)/specific-impulse The current specific impulse of the engine, in seconds. Returns zero if the engine is not active. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:post:: /space-center/engine/(id)/specific-impulse-at The specific impulse of the engine under the given pressure, in seconds. Returns zero if the engine is not active. :param id: The identifier of the :ref:`Engine ` object. :reqjson double pressure: Atmospheric pressure in atmospheres :resjson float value: .. http:get:: /space-center/engine/(id)/vacuum-specific-impulse The vacuum specific impulse of the engine, in seconds. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:get:: /space-center/engine/(id)/kerbin-sea-level-specific-impulse The specific impulse of the engine at sea level on Kerbin, in seconds. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:get:: /space-center/engine/(id)/propellant-names The names of the propellants that the engine consumes. :param id: The identifier of the :ref:`Engine ` object. :resjson list value: .. http:get:: /space-center/engine/(id)/propellant-ratios The ratio of resources that the engine consumes. A dictionary mapping resource names to the ratio at which they are consumed by the engine. .. note:: For example, if the ratios are 0.6 for LiquidFuel and 0.4 for Oxidizer, then for every 0.6 units of LiquidFuel that the engine burns, it will burn 0.4 units of Oxidizer. :param id: The identifier of the :ref:`Engine ` object. :resjson dictionary value: .. http:get:: /space-center/engine/(id)/propellants The propellants that the engine consumes. :param id: The identifier of the :ref:`Engine ` object. :resjson list value: .. http:get:: /space-center/engine/(id)/has-fuel Whether the engine has any fuel available. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/flameout Whether the engine has flamed out - it is active but has run out of propellant, so it is producing no thrust. This is the signal a client can use to decide when to activate the next stage. Note that on a vessel with drop tanks or asparagus staging some engines can flame out while others keep burning. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/throttle The current throttle setting for the engine. A value between 0 and 1. This is not necessarily the same as the vessel's main throttle setting, as some engines take time to adjust their throttle (such as jet engines), or independent throttle may be enabled. When the engine's independent throttle is enabled (see :http:get:`/space-center/engine/(id)/independent-throttle`), can be used to set the throttle percentage. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:put:: /space-center/engine/(id)/throttle The current throttle setting for the engine. A value between 0 and 1. This is not necessarily the same as the vessel's main throttle setting, as some engines take time to adjust their throttle (such as jet engines), or independent throttle may be enabled. When the engine's independent throttle is enabled (see :http:get:`/space-center/engine/(id)/independent-throttle`), can be used to set the throttle percentage. :param id: The identifier of the :ref:`Engine ` object. :reqjson float value: The new value. .. http:get:: /space-center/engine/(id)/throttle-locked Whether the :http:get:`/space-center/control/(id)/throttle` affects the engine. For example, this is ``true`` for liquid fueled rockets, and ``false`` for solid rocket boosters. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/independent-throttle Whether the independent throttle is enabled for the engine. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/independent-throttle Whether the independent throttle is enabled for the engine. :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:get:: /space-center/engine/(id)/can-restart Whether the engine can be restarted once shutdown. If the engine cannot be shutdown, returns ``false``. For example, this is ``true`` for liquid fueled rockets and ``false`` for solid rocket boosters. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/can-shutdown Whether the engine can be shutdown once activated. For example, this is ``true`` for liquid fueled rockets and ``false`` for solid rocket boosters. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/has-modes Whether the engine has multiple modes of operation. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/mode The name of the current engine mode. :param id: The identifier of the :ref:`Engine ` object. :resjson string value: .. http:put:: /space-center/engine/(id)/mode The name of the current engine mode. :param id: The identifier of the :ref:`Engine ` object. :reqjson string value: The new value. .. http:get:: /space-center/engine/(id)/modes The available modes for the engine. A dictionary mapping mode names to :ref:`Engine ` objects. :param id: The identifier of the :ref:`Engine ` object. :resjson dictionary value: .. http:post:: /space-center/engine/(id)/toggle-mode Toggle the current engine mode. :param id: The identifier of the :ref:`Engine ` object. .. http:get:: /space-center/engine/(id)/auto-mode-switch Whether the engine will automatically switch modes. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/auto-mode-switch Whether the engine will automatically switch modes. :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:get:: /space-center/engine/(id)/gimballed Whether the engine is gimballed. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/gimbal-range The range over which the gimbal can move, in degrees. Returns 0 if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:get:: /space-center/engine/(id)/gimbal-locked Whether the engines gimbal is locked in place. Setting this attribute has no effect if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/gimbal-locked Whether the engines gimbal is locked in place. Setting this attribute has no effect if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:get:: /space-center/engine/(id)/gimbal-limit The gimbal limiter of the engine. A value between 0 and 1. Returns 0 if the gimbal is locked. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:put:: /space-center/engine/(id)/gimbal-limit The gimbal limiter of the engine. A value between 0 and 1. Returns 0 if the gimbal is locked. :param id: The identifier of the :ref:`Engine ` object. :reqjson float value: The new value. .. http:get:: /space-center/engine/(id)/gimbal-response-speed-enabled Whether the gimbal moves toward its commanded deflection at :http:get:`/space-center/engine/(id)/gimbal-response-speed`. When ``false``, the gimbal reaches its commanded deflection in one physics tick. Throws an exception if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/gimbal-response-speed The response speed of the gimbal, in :math:`\mathrm{s^{-1}}`. Throws an exception if the engine is not gimballed. .. note:: Each physics tick of length :math:`\Delta t`, the gimbal moves a fraction :math:`v \Delta t` of the way from its deflection to the commanded deflection, where :math:`v` is the response speed. The fraction is at most 1, so at high physics warp the gimbal can reach its commanded deflection in one tick. This lag only applies when :http:get:`/space-center/engine/(id)/gimbal-response-speed-enabled` is ``true``. :param id: The identifier of the :ref:`Engine ` object. :resjson float value: .. http:get:: /space-center/engine/(id)/gimbal-pitch-enabled Whether the gimbal responds to pitch control input. Throws an exception if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/gimbal-pitch-enabled Whether the gimbal responds to pitch control input. Throws an exception if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:get:: /space-center/engine/(id)/gimbal-yaw-enabled Whether the gimbal responds to yaw control input. Throws an exception if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/gimbal-yaw-enabled Whether the gimbal responds to yaw control input. Throws an exception if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:get:: /space-center/engine/(id)/gimbal-roll-enabled Whether the gimbal responds to roll control input. Throws an exception if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/gimbal-roll-enabled Whether the gimbal responds to roll control input. Throws an exception if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:get:: /space-center/engine/(id)/gimbal-override Whether the gimbal is being controlled directly, bypassing the vessel's normal flight controls. When enabled, the gimbal deflection is set by :http:get:`/space-center/engine/(id)/gimbal-actuation` instead of the normal control inputs. The override is automatically released if the controlling client disconnects or the vessel changes. Has no effect if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/gimbal-override Whether the gimbal is being controlled directly, bypassing the vessel's normal flight controls. When enabled, the gimbal deflection is set by :http:get:`/space-center/engine/(id)/gimbal-actuation` instead of the normal control inputs. The override is automatically released if the controlling client disconnects or the vessel changes. Has no effect if the engine is not gimballed. :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:get:: /space-center/engine/(id)/gimbal-actuation The gimbal actuation command applied when :http:get:`/space-center/engine/(id)/gimbal-override` is enabled, in the pitch, roll and yaw axes. Each component is a normalized control input between -1 and 1. The physical deflection is scaled by :http:get:`/space-center/engine/(id)/gimbal-range` and :http:get:`/space-center/engine/(id)/gimbal-limit`. When the gimbal is not being overridden, returns the current actuation. .. note:: The gimbal ignores the component for an axis it is disabled for, such as pitch when :http:get:`/space-center/engine/(id)/gimbal-pitch-enabled` is ``false``. :param id: The identifier of the :ref:`Engine ` object. :resjson tuple value: .. http:put:: /space-center/engine/(id)/gimbal-actuation The gimbal actuation command applied when :http:get:`/space-center/engine/(id)/gimbal-override` is enabled, in the pitch, roll and yaw axes. Each component is a normalized control input between -1 and 1. The physical deflection is scaled by :http:get:`/space-center/engine/(id)/gimbal-range` and :http:get:`/space-center/engine/(id)/gimbal-limit`. When the gimbal is not being overridden, returns the current actuation. .. note:: The gimbal ignores the component for an axis it is disabled for, such as pitch when :http:get:`/space-center/engine/(id)/gimbal-pitch-enabled` is ``false``. :param id: The identifier of the :ref:`Engine ` object. :reqjson tuple value: The new value. .. http:get:: /space-center/engine/(id)/available-torque The available torque, in :math:`\mathrm{N \cdot m}`, that can be produced by this engine, in the positive and negative pitch, roll and yaw axes of the vessel. These axes correspond to the coordinate axes of the :http:get:`/space-center/vessel/(id)/reference-frame`. Returns zero if the engine is inactive, or not gimballed. .. note:: The torque is zero about an axis the gimbal is disabled for, such as pitch when :http:get:`/space-center/engine/(id)/gimbal-pitch-enabled` is ``false``. :param id: The identifier of the :ref:`Engine ` object. :resjson SpaceCenter.AxisRange value: .. http:get:: /space-center/engine/(id)/can-reverse-thrust Whether the engine has a recognized thrust reverser. This is ``true`` for stock engines with a thrust reverser (such as the J-33 "Wheesley" and J-90 "Goliath" turbofan engines) and for supported mod engines. It is ``false`` for engines whose reverser is not recognized, as KSP provides no standard way to detect one. .. note:: Recognizes the thrust reversers of Firespitter and KerbalActuators. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/thrust-reversed Whether the engine's thrust reverser is engaged, reversing the direction of thrust. While the reverser is still moving, this reports the state it is moving to, so a read immediately after a set returns the value that was set and setting the same value again has no effect. Throws an exception if the engine does not have a thrust reverser (see :http:get:`/space-center/engine/(id)/can-reverse-thrust`). :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:put:: /space-center/engine/(id)/thrust-reversed Whether the engine's thrust reverser is engaged, reversing the direction of thrust. While the reverser is still moving, this reports the state it is moving to, so a read immediately after a set returns the value that was set and setting the same value again has no effect. Throws an exception if the engine does not have a thrust reverser (see :http:get:`/space-center/engine/(id)/can-reverse-thrust`). :param id: The identifier of the :ref:`Engine ` object. :reqjson bool value: The new value. .. http:post:: /space-center/engine/(id)/toggle-thrust-reversal Toggle the engine's thrust reverser. Throws an exception if the engine does not have a thrust reverser (see :http:get:`/space-center/engine/(id)/can-reverse-thrust`). :param id: The identifier of the :ref:`Engine ` object. .. http:get:: /space-center/engine/(id)/has-real-fuels Whether the engine is managed by RealFuels. The remaining properties in this section are only available when it is. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/ignitions The number of times the engine can still be ignited, or -1 if it can be ignited an unlimited number of times. Throws an exception if the engine is not managed by RealFuels (see :http:get:`/space-center/engine/(id)/has-real-fuels`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Engine ` object. :resjson int32 value: .. http:get:: /space-center/engine/(id)/ignition-resources The resources the engine consumes each time it ignites, keyed by resource name, with the amount of each that is required. The engine uses up an ignition and fails to light if they are not available. Throws an exception if the engine is not managed by RealFuels (see :http:get:`/space-center/engine/(id)/has-real-fuels`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Engine ` object. :resjson dictionary value: .. http:get:: /space-center/engine/(id)/has-ullage Whether the engine's propellant is subject to ullage, so that it must be settled before the engine will run reliably. Throws an exception if the engine is not managed by RealFuels (see :http:get:`/space-center/engine/(id)/has-real-fuels`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/propellant-stability How settled the propellant feeding the engine is, from 0 (fully unsettled) to 1 (fully settled). Acceleration along the engine's thrust axis settles it, and coasting and rotation unsettle it. Throws an exception if the engine is not managed by RealFuels (see :http:get:`/space-center/engine/(id)/has-real-fuels`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Engine ` object. :resjson double value: .. http:get:: /space-center/engine/(id)/propellant-reliability The probability that the propellant feeding the engine behaves normally, from 0 to 1. This is :http:get:`/space-center/engine/(id)/propellant-stability` scaled by the game's ullage difficulty setting, and is the value RealFuels itself tests against when deciding whether the engine runs. Throws an exception if the engine is not managed by RealFuels (see :http:get:`/space-center/engine/(id)/has-real-fuels`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Engine ` object. :resjson double value: .. http:get:: /space-center/engine/(id)/pressure-fed Whether the engine is fed by tank pressure rather than by a pump, and so needs to draw from a highly pressurized tank. Throws an exception if the engine is not managed by RealFuels (see :http:get:`/space-center/engine/(id)/has-real-fuels`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. http:get:: /space-center/engine/(id)/has-feed-pressure Whether the tanks feeding the engine supply the pressure it needs. Always ``true`` for an engine that is not pressure fed. Throws an exception if the engine is not managed by RealFuels (see :http:get:`/space-center/engine/(id)/has-real-fuels`). .. note:: Requires RealFuels. :param id: The identifier of the :ref:`Engine ` object. :resjson bool value: .. _http-SpaceCenter.Propellant: .. rubric:: Propellant A propellant for an engine. Obtains by calling :http:get:`/space-center/engine/(id)/propellants`. A ``Propellant`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/propellant/(id)/name The name of the propellant. :param id: The identifier of the :ref:`Propellant ` object. :resjson string value: .. http:get:: /space-center/propellant/(id)/current-amount The current amount of propellant consumed in the current physics update. :param id: The identifier of the :ref:`Propellant ` object. :resjson double value: .. http:get:: /space-center/propellant/(id)/current-requirement The required amount of propellant for the current physics update. :param id: The identifier of the :ref:`Propellant ` object. :resjson double value: .. http:get:: /space-center/propellant/(id)/total-resource-available The total amount of the underlying resource currently reachable given resource flow rules. :param id: The identifier of the :ref:`Propellant ` object. :resjson double value: .. http:get:: /space-center/propellant/(id)/total-resource-capacity The total vehicle capacity for the underlying propellant resource, restricted by resource flow rules. :param id: The identifier of the :ref:`Propellant ` object. :resjson double value: .. http:get:: /space-center/propellant/(id)/ignore-for-isp If this propellant should be ignored when calculating required mass flow given specific impulse. :param id: The identifier of the :ref:`Propellant ` object. :resjson bool value: .. http:get:: /space-center/propellant/(id)/ignore-for-thrust-curve If this propellant should be ignored for thrust curve calculations. :param id: The identifier of the :ref:`Propellant ` object. :resjson bool value: .. http:get:: /space-center/propellant/(id)/draw-stack-gauge If this propellant has a stack gauge or not. :param id: The identifier of the :ref:`Propellant ` object. :resjson bool value: .. http:get:: /space-center/propellant/(id)/is-deprived If this propellant is deprived. :param id: The identifier of the :ref:`Propellant ` object. :resjson bool value: .. http:get:: /space-center/propellant/(id)/ratio The propellant ratio. :param id: The identifier of the :ref:`Propellant ` object. :resjson float value: Experiment ^^^^^^^^^^ .. _http-SpaceCenter.Experiment: .. rubric:: Experiment Obtained by calling :http:get:`/space-center/part/(id)/experiment`. .. note:: Includes the experiments of DMagic's DMModuleScienceAnimateGeneric. A ``Experiment`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/experiment/(id)/part The part object for this experiment. :param id: The identifier of the :ref:`Experiment ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/experiment/(id)/name Internal name of the experiment, as used in `part cfg files `_. :param id: The identifier of the :ref:`Experiment ` object. :resjson string value: .. http:get:: /space-center/experiment/(id)/title Title of the experiment, as shown on the in-game UI. :param id: The identifier of the :ref:`Experiment ` object. :resjson string value: .. http:post:: /space-center/experiment/(id)/run Run the experiment. :param id: The identifier of the :ref:`Experiment ` object. .. http:post:: /space-center/experiment/(id)/transmit Transmit all experimental data contained by this part. :param id: The identifier of the :ref:`Experiment ` object. .. http:post:: /space-center/experiment/(id)/dump Dump the experimental data contained by the experiment. :param id: The identifier of the :ref:`Experiment ` object. .. http:post:: /space-center/experiment/(id)/reset Reset the experiment. :param id: The identifier of the :ref:`Experiment ` object. .. http:get:: /space-center/experiment/(id)/deployed Whether the experiment has been deployed. :param id: The identifier of the :ref:`Experiment ` object. :resjson bool value: .. http:get:: /space-center/experiment/(id)/rerunnable Whether the experiment can be re-run. :param id: The identifier of the :ref:`Experiment ` object. :resjson bool value: .. http:get:: /space-center/experiment/(id)/inoperable Whether the experiment is inoperable. :param id: The identifier of the :ref:`Experiment ` object. :resjson bool value: .. http:get:: /space-center/experiment/(id)/has-data Whether the experiment contains data. :param id: The identifier of the :ref:`Experiment ` object. :resjson bool value: .. http:get:: /space-center/experiment/(id)/data The data contained in this experiment. :param id: The identifier of the :ref:`Experiment ` object. :resjson list value: .. http:get:: /space-center/experiment/(id)/biome The name of the biome the experiment is currently in. :param id: The identifier of the :ref:`Experiment ` object. :resjson string value: .. http:get:: /space-center/experiment/(id)/available Determines if the experiment is available given the current conditions. :param id: The identifier of the :ref:`Experiment ` object. :resjson bool value: .. http:get:: /space-center/experiment/(id)/science-subject Containing information on the corresponding specific science result for the current conditions. Returns ``null`` if the experiment is unavailable. :param id: The identifier of the :ref:`Experiment ` object. :resjson SpaceCenter.ScienceSubject? value: .. _http-SpaceCenter.ScienceData: .. rubric:: ScienceData Obtained by calling :http:get:`/space-center/experiment/(id)/data`. Passed and returned as an object with these fields: ``data_amount`` (float) Data amount. ``science_value`` (float) Science value. ``transmit_value`` (float) Transmit value. .. _http-SpaceCenter.ScienceSubject: .. rubric:: ScienceSubject Obtained by calling :http:get:`/space-center/experiment/(id)/science-subject`. Passed and returned as an object with these fields: ``id`` (string) The identifier of the subject, e.g. ``crewReport@KerbinSrfLandedLaunchPad``. ``title`` (string) The title of the subject, as shown in the science archives. ``is_complete`` (bool) Whether the subject has been fully researched. This is true once the science banked for the subject reaches the science cap. As the banked science (see ``science``) is only updated after transmission/recovery, this reflects fully mining the subject over repeated experiments, not whether a single run has produced data. To check whether a run has produced data, and how valuable it is, use :http:get:`/space-center/experiment/(id)/has-data` and ``transmit_value``. ``science`` (float) Amount of science already earned from this subject, not updated until after transmission/recovery. ``science_cap`` (float) Total science allowable for this subject. ``data_scale`` (float) Multiply science value by this to determine data amount in mits. ``subject_value`` (float) Multiplier for specific Celestial Body/Experiment Situation combination. ``scientific_value`` (float) Diminishing value multiplier for decreasing the science value returned from repeated experiments. Fairing ^^^^^^^ .. _http-SpaceCenter.Fairing: .. rubric:: Fairing A fairing. Obtained by calling :http:get:`/space-center/part/(id)/fairing`. .. note:: Includes the fairings of ProceduralFairings. A ``Fairing`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/fairing/(id)/part The part object for this fairing. :param id: The identifier of the :ref:`Fairing ` object. :resjson SpaceCenter.Part value: .. http:post:: /space-center/fairing/(id)/jettison Jettison the fairing. Has no effect if it has already been jettisoned. :param id: The identifier of the :ref:`Fairing ` object. .. http:get:: /space-center/fairing/(id)/jettisoned Whether the fairing has been jettisoned. :param id: The identifier of the :ref:`Fairing ` object. :resjson bool value: Intake ^^^^^^ .. _http-SpaceCenter.Intake: .. rubric:: Intake An air intake. Obtained by calling :http:get:`/space-center/part/(id)/intake`. A ``Intake`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/intake/(id)/part The part object for this intake. :param id: The identifier of the :ref:`Intake ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/intake/(id)/open Whether the intake is open. :param id: The identifier of the :ref:`Intake ` object. :resjson bool value: .. http:put:: /space-center/intake/(id)/open Whether the intake is open. :param id: The identifier of the :ref:`Intake ` object. :reqjson bool value: The new value. .. http:get:: /space-center/intake/(id)/speed Speed of the flow into the intake, in :math:`\mathrm{m/s}`. :param id: The identifier of the :ref:`Intake ` object. :resjson float value: .. http:get:: /space-center/intake/(id)/flow The rate of flow into the intake, in units of resource per second. :param id: The identifier of the :ref:`Intake ` object. :resjson float value: .. http:get:: /space-center/intake/(id)/area The area of the intake's opening, in :math:`\mathrm{m^{2}}`. :param id: The identifier of the :ref:`Intake ` object. :resjson float value: Leg ^^^ .. _http-SpaceCenter.Leg: .. rubric:: Leg A landing leg. Obtained by calling :http:get:`/space-center/part/(id)/leg`. A ``Leg`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/leg/(id)/part The part object for this landing leg. :param id: The identifier of the :ref:`Leg ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/leg/(id)/state The current state of the landing leg. :param id: The identifier of the :ref:`Leg ` object. :resjson SpaceCenter.DeployableState value: .. http:get:: /space-center/leg/(id)/deployable Whether the leg is deployable. :param id: The identifier of the :ref:`Leg ` object. :resjson bool value: .. http:get:: /space-center/leg/(id)/deployed Whether the landing leg is deployed. .. note:: Fixed landing legs are always deployed. Throws :ref:`KRPC.InvalidOperationException ` if set on a fixed landing leg. :param id: The identifier of the :ref:`Leg ` object. :resjson bool value: .. http:put:: /space-center/leg/(id)/deployed Whether the landing leg is deployed. .. note:: Fixed landing legs are always deployed. Throws :ref:`KRPC.InvalidOperationException ` if set on a fixed landing leg. :param id: The identifier of the :ref:`Leg ` object. :reqjson bool value: The new value. .. http:get:: /space-center/leg/(id)/is-grounded Returns whether the leg is touching the ground. :param id: The identifier of the :ref:`Leg ` object. :resjson bool value: .. http:get:: /space-center/leg/(id)/load The force pressing the leg's foot into the ground, in :math:`\mathrm{kN}`. .. note:: The game raises the load of a grounded leg to at least 10 kN. :http:get:`/space-center/leg/(id)/impact-tolerance` applies to the rise in this value. :param id: The identifier of the :ref:`Leg ` object. :resjson float value: .. http:post:: /space-center/leg/(id)/contact-position The position of the bottom of the leg's foot, in the given reference frame. While the leg is grounded, this is where it touches the ground. :param id: The identifier of the :ref:`Leg ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:get:: /space-center/leg/(id)/suspension-spring-strength Suspension spring strength, as set in the editor. Throws an exception if the leg has no suspension. :param id: The identifier of the :ref:`Leg ` object. :resjson float value: .. http:get:: /space-center/leg/(id)/suspension-damper-strength Suspension damper strength, as set in the editor. Throws an exception if the leg has no suspension. :param id: The identifier of the :ref:`Leg ` object. :resjson float value: .. http:get:: /space-center/leg/(id)/suspension-spring The spring constant of the suspension, in :math:`\mathrm{kN/m}`, or ``null`` while the leg is not grounded. .. note:: The game updates it while the leg is grounded, from :http:get:`/space-center/leg/(id)/suspension-spring-strength`, the vessel's mass, the leg's compression and the local gravity. :param id: The identifier of the :ref:`Leg ` object. :resjson float? value: .. http:get:: /space-center/leg/(id)/suspension-damper The damping constant of the suspension, in :math:`\mathrm{kN \cdot s/m}`, or ``null`` while the leg is not grounded. .. note:: The game updates it while the leg is grounded, from :http:get:`/space-center/leg/(id)/suspension-damper-strength` and :http:get:`/space-center/leg/(id)/suspension-spring`. :param id: The identifier of the :ref:`Leg ` object. :resjson float? value: .. http:get:: /space-center/leg/(id)/suspension-travel The travel of the suspension, in meters. :param id: The identifier of the :ref:`Leg ` object. :resjson float value: .. http:get:: /space-center/leg/(id)/impact-tolerance The rise in :http:get:`/space-center/leg/(id)/load` over one physics tick that breaks the leg, in :math:`\mathrm{kN}`. Throws an exception if the leg is not breakable. .. note:: The game scales the rise by the local gravity divided by standard gravity before comparing it with this tolerance. :param id: The identifier of the :ref:`Leg ` object. :resjson float value: .. http:get:: /space-center/leg/(id)/explode-multiplier The multiple of :http:get:`/space-center/leg/(id)/impact-tolerance` that destroys the leg, in place of breaking it. Throws an exception if the leg is not breakable. :param id: The identifier of the :ref:`Leg ` object. :resjson float value: Launch Clamp ^^^^^^^^^^^^ .. _http-SpaceCenter.LaunchClamp: .. rubric:: LaunchClamp A launch clamp. Obtained by calling :http:get:`/space-center/part/(id)/launch-clamp`. A ``LaunchClamp`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/launch-clamp/(id)/part The part object for this launch clamp. :param id: The identifier of the :ref:`LaunchClamp ` object. :resjson SpaceCenter.Part value: .. http:post:: /space-center/launch-clamp/(id)/release Releases the docking clamp. Has no effect if the clamp has already been released. :param id: The identifier of the :ref:`LaunchClamp ` object. Light ^^^^^ .. _http-SpaceCenter.Light: .. rubric:: Light A light. Obtained by calling :http:get:`/space-center/part/(id)/light`. A ``Light`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/light/(id)/part The part object for this light. :param id: The identifier of the :ref:`Light ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/light/(id)/active Whether the light is switched on. :param id: The identifier of the :ref:`Light ` object. :resjson bool value: .. http:put:: /space-center/light/(id)/active Whether the light is switched on. :param id: The identifier of the :ref:`Light ` object. :reqjson bool value: The new value. .. http:get:: /space-center/light/(id)/color The color of the light. :param id: The identifier of the :ref:`Light ` object. :resjson StdLib.ColorRGB value: .. http:put:: /space-center/light/(id)/color The color of the light. :param id: The identifier of the :ref:`Light ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /space-center/light/(id)/blink Whether blinking is enabled. :param id: The identifier of the :ref:`Light ` object. :resjson bool value: .. http:put:: /space-center/light/(id)/blink Whether blinking is enabled. :param id: The identifier of the :ref:`Light ` object. :reqjson bool value: The new value. .. http:get:: /space-center/light/(id)/blink-rate The blink rate of the light. :param id: The identifier of the :ref:`Light ` object. :resjson float value: .. http:put:: /space-center/light/(id)/blink-rate The blink rate of the light. :param id: The identifier of the :ref:`Light ` object. :reqjson float value: The new value. .. http:get:: /space-center/light/(id)/power-usage The current power usage, in units of charge per second. :param id: The identifier of the :ref:`Light ` object. :resjson float value: Parachute ^^^^^^^^^ .. _http-SpaceCenter.Parachute: .. rubric:: Parachute A parachute. Obtained by calling :http:get:`/space-center/part/(id)/parachute`. .. note:: Includes the parachutes of RealChute. A ``Parachute`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/parachute/(id)/part The part object for this parachute. :param id: The identifier of the :ref:`Parachute ` object. :resjson SpaceCenter.Part value: .. http:post:: /space-center/parachute/(id)/deploy Deploys the parachute. This has no effect if the parachute has already been deployed. :param id: The identifier of the :ref:`Parachute ` object. .. http:get:: /space-center/parachute/(id)/deployed Whether the parachute has been deployed. :param id: The identifier of the :ref:`Parachute ` object. :resjson bool value: .. http:post:: /space-center/parachute/(id)/arm Deploys the parachute. This has no effect if the parachute has already been armed or deployed. :param id: The identifier of the :ref:`Parachute ` object. .. http:get:: /space-center/parachute/(id)/armed Whether the parachute has been armed or deployed. :param id: The identifier of the :ref:`Parachute ` object. :resjson bool value: .. http:post:: /space-center/parachute/(id)/cut Cuts the parachute. :param id: The identifier of the :ref:`Parachute ` object. .. http:get:: /space-center/parachute/(id)/state The current state of the parachute. :param id: The identifier of the :ref:`Parachute ` object. :resjson SpaceCenter.ParachuteState value: .. http:get:: /space-center/parachute/(id)/deploy-altitude The altitude at which the parachute will full deploy, in meters. Only applicable to stock parachutes. :param id: The identifier of the :ref:`Parachute ` object. :resjson float value: .. http:put:: /space-center/parachute/(id)/deploy-altitude The altitude at which the parachute will full deploy, in meters. Only applicable to stock parachutes. :param id: The identifier of the :ref:`Parachute ` object. :reqjson float value: The new value. .. http:get:: /space-center/parachute/(id)/deploy-min-pressure The minimum pressure at which the parachute will semi-deploy, in atmospheres. Only applicable to stock parachutes. :param id: The identifier of the :ref:`Parachute ` object. :resjson float value: .. http:put:: /space-center/parachute/(id)/deploy-min-pressure The minimum pressure at which the parachute will semi-deploy, in atmospheres. Only applicable to stock parachutes. :param id: The identifier of the :ref:`Parachute ` object. :reqjson float value: The new value. .. http:get:: /space-center/parachute/(id)/safe-state Whether it is currently safe to deploy the parachute, given the vessel's flight conditions. Computed by KSP from the current airspeed, pressure and temperature. Only applicable to stock parachutes. Note that KSP reports ``"unsafe"`` for the first second after the vessel unpacks, before its thermal data is valid. :param id: The identifier of the :ref:`Parachute ` object. :resjson SpaceCenter.ParachuteSafeState value: .. _http-SpaceCenter.ParachuteState: .. rubric:: ParachuteState The state of a parachute. See :http:get:`/space-center/parachute/(id)/state`. Passed and returned as the name of one of its values: ``"stowed"`` The parachute is safely tucked away inside its housing. ``"armed"`` The parachute is armed for deployment. ``"semi_deployed"`` The parachute has been deployed and is providing some drag, but is not fully deployed yet. (Stock parachutes only) ``"deployed"`` The parachute is fully deployed. ``"cut"`` The parachute has been cut. .. _http-SpaceCenter.ParachuteSafeState: .. rubric:: ParachuteSafeState The safety state of deploying a parachute. See :http:get:`/space-center/parachute/(id)/safe-state`. Passed and returned as the name of one of its values: ``"safe"`` The parachute is safe to deploy. ``"risky"`` Deploying the parachute is risky, and it may break off. ``"unsafe"`` The parachute is unsafe to deploy, and will break off. ``"none"`` The safety state is not available, because the vessel is not in an atmosphere or the parachute has already been deployed or cut. Radiator ^^^^^^^^ .. _http-SpaceCenter.Radiator: .. rubric:: Radiator A radiator. Obtained by calling :http:get:`/space-center/part/(id)/radiator`. A ``Radiator`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/radiator/(id)/part The part object for this radiator. :param id: The identifier of the :ref:`Radiator ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/radiator/(id)/deployable Whether the radiator is deployable. :param id: The identifier of the :ref:`Radiator ` object. :resjson bool value: .. http:get:: /space-center/radiator/(id)/deployed For a deployable radiator, ``true`` if the radiator is extended. If the radiator is not deployable, this is always ``true``. :param id: The identifier of the :ref:`Radiator ` object. :resjson bool value: .. http:put:: /space-center/radiator/(id)/deployed For a deployable radiator, ``true`` if the radiator is extended. If the radiator is not deployable, this is always ``true``. :param id: The identifier of the :ref:`Radiator ` object. :reqjson bool value: The new value. .. http:get:: /space-center/radiator/(id)/state The current state of the radiator. .. note:: A fixed radiator is always ``"deployed"``. :param id: The identifier of the :ref:`Radiator ` object. :resjson SpaceCenter.DeployableState value: Resource Converter ^^^^^^^^^^^^^^^^^^ .. _http-SpaceCenter.ResourceConverter: .. rubric:: ResourceConverter A resource converter. Obtained by calling :http:get:`/space-center/part/(id)/resource-converter`. A ``ResourceConverter`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/resource-converter/(id)/part The part object for this converter. :param id: The identifier of the :ref:`ResourceConverter ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/resource-converter/(id)/count The number of converters in the part. :param id: The identifier of the :ref:`ResourceConverter ` object. :resjson int32 value: .. http:post:: /space-center/resource-converter/(id)/name The name of the specified converter. :param id: The identifier of the :ref:`ResourceConverter ` object. :reqjson int32 index: Index of the converter. :resjson string value: .. http:post:: /space-center/resource-converter/(id)/active True if the specified converter is active. :param id: The identifier of the :ref:`ResourceConverter ` object. :reqjson int32 index: Index of the converter. :resjson bool value: .. http:post:: /space-center/resource-converter/(id)/start Start the specified converter. :param id: The identifier of the :ref:`ResourceConverter ` object. :reqjson int32 index: Index of the converter. .. http:post:: /space-center/resource-converter/(id)/stop Stop the specified converter. :param id: The identifier of the :ref:`ResourceConverter ` object. :reqjson int32 index: Index of the converter. .. http:post:: /space-center/resource-converter/(id)/state The state of the specified converter. :param id: The identifier of the :ref:`ResourceConverter ` object. :reqjson int32 index: Index of the converter. :resjson SpaceCenter.ResourceConverterState value: .. http:post:: /space-center/resource-converter/(id)/status-info Status information for the specified converter. This is the full status message shown in the in-game UI. :param id: The identifier of the :ref:`ResourceConverter ` object. :reqjson int32 index: Index of the converter. :resjson string value: .. http:post:: /space-center/resource-converter/(id)/inputs List of the names of resources consumed by the specified converter. :param id: The identifier of the :ref:`ResourceConverter ` object. :reqjson int32 index: Index of the converter. :resjson list value: .. http:post:: /space-center/resource-converter/(id)/outputs List of the names of resources produced by the specified converter. :param id: The identifier of the :ref:`ResourceConverter ` object. :reqjson int32 index: Index of the converter. :resjson list value: .. http:get:: /space-center/resource-converter/(id)/optimum-core-temperature The core temperature at which the converter will operate with peak efficiency, in Kelvin. :param id: The identifier of the :ref:`ResourceConverter ` object. :resjson float value: .. http:get:: /space-center/resource-converter/(id)/core-temperature The core temperature of the converter, in Kelvin. :param id: The identifier of the :ref:`ResourceConverter ` object. :resjson float value: .. http:get:: /space-center/resource-converter/(id)/thermal-efficiency The thermal efficiency of the converter, as a percentage of its maximum. :param id: The identifier of the :ref:`ResourceConverter ` object. :resjson float value: .. _http-SpaceCenter.ResourceConverterState: .. rubric:: ResourceConverterState The state of a resource converter. See :http:post:`/space-center/resource-converter/(id)/state`. Passed and returned as the name of one of its values: ``"running"`` Converter is running. ``"idle"`` Converter is idle. ``"missing_resource"`` Converter is missing a required resource. ``"storage_full"`` No available storage for output resource. ``"capacity"`` At preset resource capacity. ``"unknown"`` Unknown state. Possible with modified resource converters. In this case, check :http:post:`/space-center/resource-converter/(id)/status-info` for more information. Resource Harvester ^^^^^^^^^^^^^^^^^^ .. _http-SpaceCenter.ResourceHarvester: .. rubric:: ResourceHarvester A resource harvester (drill). Obtained by calling :http:get:`/space-center/part/(id)/resource-harvester`. A ``ResourceHarvester`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/resource-harvester/(id)/part The part object for this harvester. :param id: The identifier of the :ref:`ResourceHarvester ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/resource-harvester/(id)/state The deployment state of the harvester. Whether it is drilling is reported separately by :http:get:`/space-center/resource-harvester/(id)/active`. .. note:: A harvester is never ``"broken"``, as the game does not track damage for them. :param id: The identifier of the :ref:`ResourceHarvester ` object. :resjson SpaceCenter.DeployableState value: .. http:get:: /space-center/resource-harvester/(id)/deployed Whether the harvester is deployed. :param id: The identifier of the :ref:`ResourceHarvester ` object. :resjson bool value: .. http:put:: /space-center/resource-harvester/(id)/deployed Whether the harvester is deployed. :param id: The identifier of the :ref:`ResourceHarvester ` object. :reqjson bool value: The new value. .. http:get:: /space-center/resource-harvester/(id)/active Whether the harvester is actively drilling. .. note:: A value set while the harvester is deploying is applied when the deploy completes, so it can be set immediately after setting :http:get:`/space-center/resource-harvester/(id)/deployed` without waiting for the deploy animation. Setting it has no effect while the harvester is retracted or retracting. :param id: The identifier of the :ref:`ResourceHarvester ` object. :resjson bool value: .. http:put:: /space-center/resource-harvester/(id)/active Whether the harvester is actively drilling. .. note:: A value set while the harvester is deploying is applied when the deploy completes, so it can be set immediately after setting :http:get:`/space-center/resource-harvester/(id)/deployed` without waiting for the deploy animation. Setting it has no effect while the harvester is retracted or retracting. :param id: The identifier of the :ref:`ResourceHarvester ` object. :reqjson bool value: The new value. .. http:get:: /space-center/resource-harvester/(id)/extraction-rate The rate at which the drill is extracting ore, in :math:`\mathrm{units/s}`. :param id: The identifier of the :ref:`ResourceHarvester ` object. :resjson float value: .. http:get:: /space-center/resource-harvester/(id)/thermal-efficiency The thermal efficiency of the drill, as a percentage of its maximum. :param id: The identifier of the :ref:`ResourceHarvester ` object. :resjson float value: .. http:get:: /space-center/resource-harvester/(id)/core-temperature The core temperature of the drill, in Kelvin. :param id: The identifier of the :ref:`ResourceHarvester ` object. :resjson float value: .. http:get:: /space-center/resource-harvester/(id)/optimum-core-temperature The core temperature at which the drill will operate with peak efficiency, in Kelvin. :param id: The identifier of the :ref:`ResourceHarvester ` object. :resjson float value: Reaction Wheel ^^^^^^^^^^^^^^ .. _http-SpaceCenter.ReactionWheel: .. rubric:: ReactionWheel A reaction wheel. Obtained by calling :http:get:`/space-center/part/(id)/reaction-wheel`. A ``ReactionWheel`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/reaction-wheel/(id)/part The part object for this reaction wheel. :param id: The identifier of the :ref:`ReactionWheel ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/reaction-wheel/(id)/active Whether the reaction wheel is active. :param id: The identifier of the :ref:`ReactionWheel ` object. :resjson bool value: .. http:put:: /space-center/reaction-wheel/(id)/active Whether the reaction wheel is active. :param id: The identifier of the :ref:`ReactionWheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/reaction-wheel/(id)/broken Whether the reaction wheel is broken. :param id: The identifier of the :ref:`ReactionWheel ` object. :resjson bool value: .. http:get:: /space-center/reaction-wheel/(id)/available-torque The available torque, in :math:`\mathrm{N \cdot m}`, that can be produced by this reaction wheel, in the positive and negative pitch, roll and yaw axes of the vessel. These axes correspond to the coordinate axes of the :http:get:`/space-center/vessel/(id)/reference-frame`. Returns zero if the reaction wheel is inactive or broken. :param id: The identifier of the :ref:`ReactionWheel ` object. :resjson SpaceCenter.AxisRange value: .. http:get:: /space-center/reaction-wheel/(id)/max-torque The maximum torque, in :math:`\mathrm{N \cdot m}`, that can be produced by this reaction wheel, when it is active, in the positive and negative pitch, roll and yaw axes of the vessel. These axes correspond to the coordinate axes of the :http:get:`/space-center/vessel/(id)/reference-frame`. :param id: The identifier of the :ref:`ReactionWheel ` object. :resjson SpaceCenter.AxisRange value: .. http:get:: /space-center/reaction-wheel/(id)/authority-limiter The authority limiter for the reaction wheel, as a percentage of maximum torque. A value between 0 and 1. :param id: The identifier of the :ref:`ReactionWheel ` object. :resjson float value: .. http:put:: /space-center/reaction-wheel/(id)/authority-limiter The authority limiter for the reaction wheel, as a percentage of maximum torque. A value between 0 and 1. :param id: The identifier of the :ref:`ReactionWheel ` object. :reqjson float value: The new value. Resource Drain ^^^^^^^^^^^^^^ .. _http-SpaceCenter.ResourceDrain: .. rubric:: ResourceDrain A resource drain. Obtained by calling :http:get:`/space-center/part/(id)/resource-drain`. A ``ResourceDrain`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/resource-drain/(id)/part The part object for this resource drain. :param id: The identifier of the :ref:`ResourceDrain ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/resource-drain/(id)/available-resources List of available resources. :param id: The identifier of the :ref:`ResourceDrain ` object. :resjson list value: .. http:post:: /space-center/resource-drain/(id)/set-resource Whether the given resource should be drained. :param id: The identifier of the :ref:`ResourceDrain ` object. :reqjson SpaceCenter.Resource resource: :reqjson bool enabled: .. http:post:: /space-center/resource-drain/(id)/check-resource Whether the provided resource is enabled for draining. :param id: The identifier of the :ref:`ResourceDrain ` object. :reqjson SpaceCenter.Resource resource: :resjson bool value: .. http:get:: /space-center/resource-drain/(id)/drain-mode The drain mode. :param id: The identifier of the :ref:`ResourceDrain ` object. :resjson SpaceCenter.DrainMode value: .. http:put:: /space-center/resource-drain/(id)/drain-mode The drain mode. :param id: The identifier of the :ref:`ResourceDrain ` object. :reqjson SpaceCenter.DrainMode value: The new value. .. http:get:: /space-center/resource-drain/(id)/min-rate Minimum possible drain rate :param id: The identifier of the :ref:`ResourceDrain ` object. :resjson float value: .. http:get:: /space-center/resource-drain/(id)/max-rate Maximum possible drain rate. :param id: The identifier of the :ref:`ResourceDrain ` object. :resjson float value: .. http:get:: /space-center/resource-drain/(id)/rate Current drain rate. :param id: The identifier of the :ref:`ResourceDrain ` object. :resjson float value: .. http:put:: /space-center/resource-drain/(id)/rate Current drain rate. :param id: The identifier of the :ref:`ResourceDrain ` object. :reqjson float value: The new value. .. http:post:: /space-center/resource-drain/(id)/start Activates resource draining for all enabled parts. :param id: The identifier of the :ref:`ResourceDrain ` object. .. http:post:: /space-center/resource-drain/(id)/stop Turns off resource draining. :param id: The identifier of the :ref:`ResourceDrain ` object. .. _http-SpaceCenter.DrainMode: .. rubric:: DrainMode Resource drain mode. See :http:get:`/space-center/resource-drain/(id)/drain-mode`. Passed and returned as the name of one of its values: ``"part"`` Drains from the parent part. ``"vessel"`` Drains from all available parts. Robotic Controller ^^^^^^^^^^^^^^^^^^ .. _http-SpaceCenter.RoboticController: .. rubric:: RoboticController A robotic controller. Obtained by calling :http:get:`/space-center/part/(id)/robotic-controller`. A ``RoboticController`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/robotic-controller/(id)/part The part object for this controller. :param id: The identifier of the :ref:`RoboticController ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/robotic-controller/(id)/enabled Whether the controller is enabled. :param id: The identifier of the :ref:`RoboticController ` object. :resjson bool value: .. http:put:: /space-center/robotic-controller/(id)/enabled Whether the controller is enabled. :param id: The identifier of the :ref:`RoboticController ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-controller/(id)/playing Whether the controller's sequence is currently playing. :param id: The identifier of the :ref:`RoboticController ` object. :resjson bool value: .. http:get:: /space-center/robotic-controller/(id)/position The current position along the sequence, in seconds. :param id: The identifier of the :ref:`RoboticController ` object. :resjson float value: .. http:put:: /space-center/robotic-controller/(id)/position The current position along the sequence, in seconds. :param id: The identifier of the :ref:`RoboticController ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-controller/(id)/length The length of the sequence, in seconds. :param id: The identifier of the :ref:`RoboticController ` object. :resjson float value: .. http:get:: /space-center/robotic-controller/(id)/play-speed The speed at which the sequence is played back, as a multiple of normal speed. :param id: The identifier of the :ref:`RoboticController ` object. :resjson float value: .. http:post:: /space-center/robotic-controller/(id)/play Start playing the controller's sequence. :param id: The identifier of the :ref:`RoboticController ` object. .. http:post:: /space-center/robotic-controller/(id)/stop Stop playing the controller's sequence. :param id: The identifier of the :ref:`RoboticController ` object. .. http:post:: /space-center/robotic-controller/(id)/has-part Whether the controller has a part. :param id: The identifier of the :ref:`RoboticController ` object. :reqjson SpaceCenter.Part part: :resjson bool value: .. http:post:: /space-center/robotic-controller/(id)/axes The axes for the controller. :param id: The identifier of the :ref:`RoboticController ` object. :resjson list value: .. http:post:: /space-center/robotic-controller/(id)/add-axis Add an axis to the controller. :param id: The identifier of the :ref:`RoboticController ` object. :reqjson SpaceCenter.Module module: The part module that the axis belongs to. :reqjson string field_name: The name of the axis field, as returned by :http:post:`/space-center/robotic-controller/(id)/axes`. :resjson bool value: Returns ``true`` if the axis is added successfully. .. http:post:: /space-center/robotic-controller/(id)/add-key-frame Add key frame value for controller axis. :param id: The identifier of the :ref:`RoboticController ` object. :reqjson SpaceCenter.Module module: The part module that the axis belongs to. :reqjson string field_name: The name of the axis field, as returned by :http:post:`/space-center/robotic-controller/(id)/axes`. :reqjson float time: The time of the key frame. :reqjson float value: The value of the key frame. :resjson bool value: Returns ``true`` if the key frame is added successfully. .. http:post:: /space-center/robotic-controller/(id)/clear-axis Clear axis. :param id: The identifier of the :ref:`RoboticController ` object. :reqjson SpaceCenter.Module module: The part module that the axis belongs to. :reqjson string field_name: The name of the axis field, as returned by :http:post:`/space-center/robotic-controller/(id)/axes`. :resjson bool value: Returns ``true`` if the axis is cleared successfully. .. _http-SpaceCenter.RoboticAxis: .. rubric:: RoboticAxis An axis of a robotic controller. .. note:: See :http:post:`/space-center/robotic-controller/(id)/axes`. Passed and returned as an object with these fields: ``module`` (SpaceCenter.Module) The part module the axis belongs to. ``field_name`` (string) The name of the field the axis controls. Robotic Hinge ^^^^^^^^^^^^^ .. _http-SpaceCenter.RoboticHinge: .. rubric:: RoboticHinge A robotic hinge. Obtained by calling :http:get:`/space-center/part/(id)/robotic-hinge`. A ``RoboticHinge`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/robotic-hinge/(id)/part The part object for this robotic hinge. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/robotic-hinge/(id)/target-angle Target angle. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson float value: .. http:put:: /space-center/robotic-hinge/(id)/target-angle Target angle. :param id: The identifier of the :ref:`RoboticHinge ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-hinge/(id)/current-angle Current angle. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson float value: .. http:get:: /space-center/robotic-hinge/(id)/min-angle The minimum angle the hinge can move to, in degrees. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson float value: .. http:put:: /space-center/robotic-hinge/(id)/min-angle The minimum angle the hinge can move to, in degrees. :param id: The identifier of the :ref:`RoboticHinge ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-hinge/(id)/max-angle The maximum angle the hinge can move to, in degrees. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson float value: .. http:put:: /space-center/robotic-hinge/(id)/max-angle The maximum angle the hinge can move to, in degrees. :param id: The identifier of the :ref:`RoboticHinge ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-hinge/(id)/rate Target movement rate in :math:`\mathrm{{}^{\circ}/s}`. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson float value: .. http:put:: /space-center/robotic-hinge/(id)/rate Target movement rate in :math:`\mathrm{{}^{\circ}/s}`. :param id: The identifier of the :ref:`RoboticHinge ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-hinge/(id)/damping Damping percentage. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson float value: .. http:put:: /space-center/robotic-hinge/(id)/damping Damping percentage. :param id: The identifier of the :ref:`RoboticHinge ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-hinge/(id)/locked Lock movement. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson bool value: .. http:put:: /space-center/robotic-hinge/(id)/locked Lock movement. :param id: The identifier of the :ref:`RoboticHinge ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-hinge/(id)/motor-engaged Whether the motor is engaged. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson bool value: .. http:put:: /space-center/robotic-hinge/(id)/motor-engaged Whether the motor is engaged. :param id: The identifier of the :ref:`RoboticHinge ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-hinge/(id)/is-moving Whether the servo is currently moving. :param id: The identifier of the :ref:`RoboticHinge ` object. :resjson bool value: .. http:post:: /space-center/robotic-hinge/(id)/move-home Move hinge to its built position. :param id: The identifier of the :ref:`RoboticHinge ` object. Robotic Piston ^^^^^^^^^^^^^^ .. _http-SpaceCenter.RoboticPiston: .. rubric:: RoboticPiston A robotic piston part. Obtained by calling :http:get:`/space-center/part/(id)/robotic-piston`. A ``RoboticPiston`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/robotic-piston/(id)/part The part object for this robotic piston. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/robotic-piston/(id)/target-extension Target extension of the piston. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson float value: .. http:put:: /space-center/robotic-piston/(id)/target-extension Target extension of the piston. :param id: The identifier of the :ref:`RoboticPiston ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-piston/(id)/current-extension Current extension of the piston. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson float value: .. http:get:: /space-center/robotic-piston/(id)/min-extension The minimum extension of the piston, in meters. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson float value: .. http:put:: /space-center/robotic-piston/(id)/min-extension The minimum extension of the piston, in meters. :param id: The identifier of the :ref:`RoboticPiston ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-piston/(id)/max-extension The maximum extension of the piston, in meters. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson float value: .. http:put:: /space-center/robotic-piston/(id)/max-extension The maximum extension of the piston, in meters. :param id: The identifier of the :ref:`RoboticPiston ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-piston/(id)/rate Target movement rate in :math:`\mathrm{m/s}`. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson float value: .. http:put:: /space-center/robotic-piston/(id)/rate Target movement rate in :math:`\mathrm{m/s}`. :param id: The identifier of the :ref:`RoboticPiston ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-piston/(id)/damping Damping percentage. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson float value: .. http:put:: /space-center/robotic-piston/(id)/damping Damping percentage. :param id: The identifier of the :ref:`RoboticPiston ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-piston/(id)/locked Lock movement. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson bool value: .. http:put:: /space-center/robotic-piston/(id)/locked Lock movement. :param id: The identifier of the :ref:`RoboticPiston ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-piston/(id)/motor-engaged Whether the motor is engaged. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson bool value: .. http:put:: /space-center/robotic-piston/(id)/motor-engaged Whether the motor is engaged. :param id: The identifier of the :ref:`RoboticPiston ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-piston/(id)/is-moving Whether the servo is currently moving. :param id: The identifier of the :ref:`RoboticPiston ` object. :resjson bool value: .. http:post:: /space-center/robotic-piston/(id)/move-home Move piston to its built position. :param id: The identifier of the :ref:`RoboticPiston ` object. Robotic Rotation ^^^^^^^^^^^^^^^^ .. _http-SpaceCenter.RoboticRotation: .. rubric:: RoboticRotation A robotic rotation servo. Obtained by calling :http:get:`/space-center/part/(id)/robotic-rotation`. A ``RoboticRotation`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/robotic-rotation/(id)/part The part object for this robotic rotation servo. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/robotic-rotation/(id)/target-angle Target angle. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson float value: .. http:put:: /space-center/robotic-rotation/(id)/target-angle Target angle. :param id: The identifier of the :ref:`RoboticRotation ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotation/(id)/current-angle Current angle. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson float value: .. http:get:: /space-center/robotic-rotation/(id)/min-angle The minimum angle the servo can rotate to, in degrees. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson float value: .. http:put:: /space-center/robotic-rotation/(id)/min-angle The minimum angle the servo can rotate to, in degrees. :param id: The identifier of the :ref:`RoboticRotation ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotation/(id)/max-angle The maximum angle the servo can rotate to, in degrees. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson float value: .. http:put:: /space-center/robotic-rotation/(id)/max-angle The maximum angle the servo can rotate to, in degrees. :param id: The identifier of the :ref:`RoboticRotation ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotation/(id)/allow-full-rotation Whether the servo is allowed to rotate freely through a full revolution, ignoring the angle limits. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson bool value: .. http:put:: /space-center/robotic-rotation/(id)/allow-full-rotation Whether the servo is allowed to rotate freely through a full revolution, ignoring the angle limits. :param id: The identifier of the :ref:`RoboticRotation ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-rotation/(id)/rate Target movement rate in :math:`\mathrm{{}^{\circ}/s}`. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson float value: .. http:put:: /space-center/robotic-rotation/(id)/rate Target movement rate in :math:`\mathrm{{}^{\circ}/s}`. :param id: The identifier of the :ref:`RoboticRotation ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotation/(id)/damping Damping percentage. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson float value: .. http:put:: /space-center/robotic-rotation/(id)/damping Damping percentage. :param id: The identifier of the :ref:`RoboticRotation ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotation/(id)/locked Lock Movement :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson bool value: .. http:put:: /space-center/robotic-rotation/(id)/locked Lock Movement :param id: The identifier of the :ref:`RoboticRotation ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-rotation/(id)/motor-engaged Whether the motor is engaged. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson bool value: .. http:put:: /space-center/robotic-rotation/(id)/motor-engaged Whether the motor is engaged. :param id: The identifier of the :ref:`RoboticRotation ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-rotation/(id)/is-moving Whether the servo is currently moving. :param id: The identifier of the :ref:`RoboticRotation ` object. :resjson bool value: .. http:post:: /space-center/robotic-rotation/(id)/move-home Move rotation servo to its built position. :param id: The identifier of the :ref:`RoboticRotation ` object. Robotic Rotor ^^^^^^^^^^^^^ .. _http-SpaceCenter.RoboticRotor: .. rubric:: RoboticRotor A robotic rotor. Obtained by calling :http:get:`/space-center/part/(id)/robotic-rotor`. A ``RoboticRotor`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/robotic-rotor/(id)/part The part object for this robotic rotor. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/robotic-rotor/(id)/target-rpm Target RPM. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson float value: .. http:put:: /space-center/robotic-rotor/(id)/target-rpm Target RPM. :param id: The identifier of the :ref:`RoboticRotor ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotor/(id)/current-rpm Current RPM. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson float value: .. http:get:: /space-center/robotic-rotor/(id)/inverted Whether the rotor direction is inverted. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson bool value: .. http:put:: /space-center/robotic-rotor/(id)/inverted Whether the rotor direction is inverted. :param id: The identifier of the :ref:`RoboticRotor ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-rotor/(id)/torque-limit Torque limit percentage. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson float value: .. http:put:: /space-center/robotic-rotor/(id)/torque-limit Torque limit percentage. :param id: The identifier of the :ref:`RoboticRotor ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotor/(id)/max-torque The maximum torque the rotor can generate, in kilonewtons. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson float value: .. http:put:: /space-center/robotic-rotor/(id)/max-torque The maximum torque the rotor can generate, in kilonewtons. :param id: The identifier of the :ref:`RoboticRotor ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotor/(id)/brake-percentage The percentage of braking force applied to the rotor. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson float value: .. http:put:: /space-center/robotic-rotor/(id)/brake-percentage The percentage of braking force applied to the rotor. :param id: The identifier of the :ref:`RoboticRotor ` object. :reqjson float value: The new value. .. http:get:: /space-center/robotic-rotor/(id)/locked Lock movement. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson bool value: .. http:put:: /space-center/robotic-rotor/(id)/locked Lock movement. :param id: The identifier of the :ref:`RoboticRotor ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-rotor/(id)/motor-engaged Whether the motor is engaged. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson bool value: .. http:put:: /space-center/robotic-rotor/(id)/motor-engaged Whether the motor is engaged. :param id: The identifier of the :ref:`RoboticRotor ` object. :reqjson bool value: The new value. .. http:get:: /space-center/robotic-rotor/(id)/is-moving Whether the rotor is currently moving. :param id: The identifier of the :ref:`RoboticRotor ` object. :resjson bool value: RCS ^^^ .. _http-SpaceCenter.RCS: .. rubric:: RCS An RCS block or thruster. Obtained by calling :http:get:`/space-center/part/(id)/rcs`. A ``RCS`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/rcs/(id)/part The part object for this RCS. :param id: The identifier of the :ref:`RCS ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/rcs/(id)/active Whether the RCS thrusters are active. An RCS thruster is inactive if the RCS action group is disabled (:http:get:`/space-center/control/(id)/rcs`), the RCS thruster itself is not enabled (:http:get:`/space-center/rcs/(id)/enabled`), or it is covered by a fairing (:http:get:`/space-center/part/(id)/shielded`) and cannot thrust while shielded. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:get:: /space-center/rcs/(id)/enabled Whether the RCS thrusters are enabled. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:put:: /space-center/rcs/(id)/enabled Whether the RCS thrusters are enabled. :param id: The identifier of the :ref:`RCS ` object. :reqjson bool value: The new value. .. http:get:: /space-center/rcs/(id)/pitch-enabled Whether the RCS thruster will fire when pitch control input is given. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:put:: /space-center/rcs/(id)/pitch-enabled Whether the RCS thruster will fire when pitch control input is given. :param id: The identifier of the :ref:`RCS ` object. :reqjson bool value: The new value. .. http:get:: /space-center/rcs/(id)/yaw-enabled Whether the RCS thruster will fire when yaw control input is given. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:put:: /space-center/rcs/(id)/yaw-enabled Whether the RCS thruster will fire when yaw control input is given. :param id: The identifier of the :ref:`RCS ` object. :reqjson bool value: The new value. .. http:get:: /space-center/rcs/(id)/roll-enabled Whether the RCS thruster will fire when roll control input is given. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:put:: /space-center/rcs/(id)/roll-enabled Whether the RCS thruster will fire when roll control input is given. :param id: The identifier of the :ref:`RCS ` object. :reqjson bool value: The new value. .. http:get:: /space-center/rcs/(id)/forward-enabled Whether the RCS thruster will fire when forward control input is given. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:put:: /space-center/rcs/(id)/forward-enabled Whether the RCS thruster will fire when forward control input is given. :param id: The identifier of the :ref:`RCS ` object. :reqjson bool value: The new value. .. http:get:: /space-center/rcs/(id)/up-enabled Whether the RCS thruster will fire when up control input is given. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:put:: /space-center/rcs/(id)/up-enabled Whether the RCS thruster will fire when up control input is given. :param id: The identifier of the :ref:`RCS ` object. :reqjson bool value: The new value. .. http:get:: /space-center/rcs/(id)/right-enabled Whether the RCS thruster will fire when right control input is given. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:put:: /space-center/rcs/(id)/right-enabled Whether the RCS thruster will fire when right control input is given. :param id: The identifier of the :ref:`RCS ` object. :reqjson bool value: The new value. .. http:get:: /space-center/rcs/(id)/input-override Whether the RCS control is being set directly, bypassing the vessel's normal flight controls. When enabled, the rotation and translation demand is set by :http:get:`/space-center/rcs/(id)/rotation-override` and :http:get:`/space-center/rcs/(id)/translation-override` instead of the normal control inputs. The override is automatically released if the controlling client disconnects or the vessel changes. Precision mode leaves an overridden block at full thrust. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: .. http:put:: /space-center/rcs/(id)/input-override Whether the RCS control is being set directly, bypassing the vessel's normal flight controls. When enabled, the rotation and translation demand is set by :http:get:`/space-center/rcs/(id)/rotation-override` and :http:get:`/space-center/rcs/(id)/translation-override` instead of the normal control inputs. The override is automatically released if the controlling client disconnects or the vessel changes. Precision mode leaves an overridden block at full thrust. :param id: The identifier of the :ref:`RCS ` object. :reqjson bool value: The new value. .. http:get:: /space-center/rcs/(id)/rotation-override The rotation demand applied when :http:get:`/space-center/rcs/(id)/input-override` is enabled, in the pitch, roll and yaw axes. Each component is a normalized control input between -1 and 1. .. note:: The block ignores the component for an axis it is disabled for, such as pitch when :http:get:`/space-center/rcs/(id)/pitch-enabled` is ``false``. :param id: The identifier of the :ref:`RCS ` object. :resjson tuple value: .. http:put:: /space-center/rcs/(id)/rotation-override The rotation demand applied when :http:get:`/space-center/rcs/(id)/input-override` is enabled, in the pitch, roll and yaw axes. Each component is a normalized control input between -1 and 1. .. note:: The block ignores the component for an axis it is disabled for, such as pitch when :http:get:`/space-center/rcs/(id)/pitch-enabled` is ``false``. :param id: The identifier of the :ref:`RCS ` object. :reqjson tuple value: The new value. .. http:get:: /space-center/rcs/(id)/translation-override The translation demand applied when :http:get:`/space-center/rcs/(id)/input-override` is enabled, in the right, up and forward axes. Each component is a normalized control input between -1 and 1. .. note:: The block ignores the component for an axis it is disabled for, such as right when :http:get:`/space-center/rcs/(id)/right-enabled` is ``false``. :param id: The identifier of the :ref:`RCS ` object. :resjson tuple value: .. http:put:: /space-center/rcs/(id)/translation-override The translation demand applied when :http:get:`/space-center/rcs/(id)/input-override` is enabled, in the right, up and forward axes. Each component is a normalized control input between -1 and 1. .. note:: The block ignores the component for an axis it is disabled for, such as right when :http:get:`/space-center/rcs/(id)/right-enabled` is ``false``. :param id: The identifier of the :ref:`RCS ` object. :reqjson tuple value: The new value. .. http:get:: /space-center/rcs/(id)/available-torque The available torque, in :math:`\mathrm{N \cdot m}`, that can be produced by this RCS, in the positive and negative pitch, roll and yaw axes of the vessel. These axes correspond to the coordinate axes of the :http:get:`/space-center/vessel/(id)/reference-frame`. Returns zero if RCS is disable. .. note:: Precision mode weakens the block, and the available torque follows it. A block driven by :http:get:`/space-center/rcs/(id)/input-override` is exempt, so :http:post:`/space-center/rcs/(id)/override-wrench` can report the larger torque an override reaches. :param id: The identifier of the :ref:`RCS ` object. :resjson SpaceCenter.AxisRange value: .. http:get:: /space-center/rcs/(id)/available-force The available force, in Newtons, that can be produced by this RCS, in the positive and negative x, y and z axes of the vessel. These axes correspond to the coordinate axes of the :http:get:`/space-center/vessel/(id)/reference-frame`. Returns zero if RCS is disabled. .. note:: Precision mode weakens the block, and the available force follows it. A block driven by :http:get:`/space-center/rcs/(id)/input-override` is exempt, so :http:post:`/space-center/rcs/(id)/override-wrench` can report the larger force an override reaches. :param id: The identifier of the :ref:`RCS ` object. :resjson SpaceCenter.AxisRange value: .. http:get:: /space-center/rcs/(id)/force The force being applied by the RCS thrusters, in Newtons. The vector is in the vessel's reference frame (:http:get:`/space-center/vessel/(id)/reference-frame`). Returns zero if the RCS is inactive. :param id: The identifier of the :ref:`RCS ` object. :resjson tuple value: .. http:get:: /space-center/rcs/(id)/torque The torque being applied by the RCS thrusters about the vessel's center of mass, in :math:`\mathrm{N \cdot m}`. The vector is in the vessel's reference frame (:http:get:`/space-center/vessel/(id)/reference-frame`). Returns zero if the RCS is inactive. :param id: The identifier of the :ref:`RCS ` object. :resjson tuple value: .. http:post:: /space-center/rcs/(id)/override-wrench The force and torque the given demands would produce, in Newtons and :math:`\mathrm{N \cdot m}`. .. note:: The demands do not have to be applied. The prediction leaves out full thrust, which :http:get:`/space-center/rcs/(id)/force` and :http:get:`/space-center/rcs/(id)/torque` include. :param id: The identifier of the :ref:`RCS ` object. :reqjson tuple rotation: A rotation demand, as set by :http:get:`/space-center/rcs/(id)/rotation-override`. :reqjson tuple translation: A translation demand, as set by :http:get:`/space-center/rcs/(id)/translation-override`. :resjson SpaceCenter.Wrench value: The force, and the torque about the vessel's center of mass, in the vessel's reference frame (:http:get:`/space-center/vessel/(id)/reference-frame`), or zero if the RCS is inactive. .. http:get:: /space-center/rcs/(id)/available-thrust The amount of thrust, in Newtons, that would be produced by the thruster when activated. Returns zero if the thruster does not have any fuel. Takes the thrusters current :http:get:`/space-center/rcs/(id)/thrust-limit` and atmospheric conditions into account. :param id: The identifier of the :ref:`RCS ` object. :resjson float value: .. http:get:: /space-center/rcs/(id)/max-thrust The maximum amount of thrust that can be produced by the RCS thrusters when active, in Newtons, with the :http:get:`/space-center/rcs/(id)/thrust-limit` set to 100%. Takes atmospheric conditions into account. :param id: The identifier of the :ref:`RCS ` object. :resjson float value: .. http:get:: /space-center/rcs/(id)/max-vacuum-thrust The maximum amount of thrust that can be produced by the RCS thrusters when active in a vacuum, in Newtons. :param id: The identifier of the :ref:`RCS ` object. :resjson float value: .. http:get:: /space-center/rcs/(id)/thrust-limit The thrust limiter of the thruster. A value between 0 and 1. :param id: The identifier of the :ref:`RCS ` object. :resjson float value: .. http:put:: /space-center/rcs/(id)/thrust-limit The thrust limiter of the thruster. A value between 0 and 1. :param id: The identifier of the :ref:`RCS ` object. :reqjson float value: The new value. .. http:get:: /space-center/rcs/(id)/thrusters A list of thrusters, one of each nozzel in the RCS part. :param id: The identifier of the :ref:`RCS ` object. :resjson list value: .. http:get:: /space-center/rcs/(id)/specific-impulse The current specific impulse of the RCS, in seconds. Returns zero if the RCS is not active. :param id: The identifier of the :ref:`RCS ` object. :resjson float value: .. http:get:: /space-center/rcs/(id)/vacuum-specific-impulse The vacuum specific impulse of the RCS, in seconds. :param id: The identifier of the :ref:`RCS ` object. :resjson float value: .. http:get:: /space-center/rcs/(id)/kerbin-sea-level-specific-impulse The specific impulse of the RCS at sea level on Kerbin, in seconds. :param id: The identifier of the :ref:`RCS ` object. :resjson float value: .. http:get:: /space-center/rcs/(id)/propellants The names of resources that the RCS consumes. :param id: The identifier of the :ref:`RCS ` object. :resjson list value: .. http:get:: /space-center/rcs/(id)/propellant-ratios The ratios of resources that the RCS consumes. A dictionary mapping resource names to the ratios at which they are consumed by the RCS. :param id: The identifier of the :ref:`RCS ` object. :resjson dictionary value: .. http:get:: /space-center/rcs/(id)/has-fuel Whether the RCS has fuel available. :param id: The identifier of the :ref:`RCS ` object. :resjson bool value: Sensor ^^^^^^ .. _http-SpaceCenter.Sensor: .. rubric:: Sensor A sensor, such as a thermometer. Obtained by calling :http:get:`/space-center/part/(id)/sensor`. A ``Sensor`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/sensor/(id)/part The part object for this sensor. :param id: The identifier of the :ref:`Sensor ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/sensor/(id)/active Whether the sensor is active. :param id: The identifier of the :ref:`Sensor ` object. :resjson bool value: .. http:put:: /space-center/sensor/(id)/active Whether the sensor is active. :param id: The identifier of the :ref:`Sensor ` object. :reqjson bool value: The new value. .. http:get:: /space-center/sensor/(id)/value The current value of the sensor. .. note:: This is the same readout string shown in the part's right-click menu in-game, and is intended for display rather than for parsing. Both its units and the way it formats numbers follow the language the game is running in, so it is not stable across locales. For programmatic access to the underlying quantities, use :http:get:`/space-center/part/(id)/temperature` (temperature sensors), :http:get:`/space-center/flight/(id)/g-force` (accelerometers) or :http:get:`/space-center/flight/(id)/static-pressure` (barometers). :param id: The identifier of the :ref:`Sensor ` object. :resjson string value: Solar Panel ^^^^^^^^^^^ .. _http-SpaceCenter.SolarPanel: .. rubric:: SolarPanel A solar panel. Obtained by calling :http:get:`/space-center/part/(id)/solar-panel`. .. note:: Includes the curved solar panels of Near Future Solar. A ``SolarPanel`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/solar-panel/(id)/part The part object for this solar panel. :param id: The identifier of the :ref:`SolarPanel ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/solar-panel/(id)/deployable Whether the solar panel is deployable. :param id: The identifier of the :ref:`SolarPanel ` object. :resjson bool value: .. http:get:: /space-center/solar-panel/(id)/deployed Whether the solar panel is extended. :param id: The identifier of the :ref:`SolarPanel ` object. :resjson bool value: .. http:put:: /space-center/solar-panel/(id)/deployed Whether the solar panel is extended. :param id: The identifier of the :ref:`SolarPanel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/solar-panel/(id)/state The current state of the solar panel. :param id: The identifier of the :ref:`SolarPanel ` object. :resjson SpaceCenter.DeployableState value: .. http:get:: /space-center/solar-panel/(id)/energy-flow The current amount of energy being generated by the solar panel, in units of charge per second. :param id: The identifier of the :ref:`SolarPanel ` object. :resjson float value: .. http:get:: /space-center/solar-panel/(id)/sun-exposure The current amount of sunlight that is incident on the solar panel, as a percentage. A value between 0 and 1. :param id: The identifier of the :ref:`SolarPanel ` object. :resjson float value: Thruster ^^^^^^^^ .. _http-SpaceCenter.Thruster: .. rubric:: Thruster The component of an :ref:`Engine ` or :ref:`RCS ` part that generates thrust. Can obtained by calling :http:get:`/space-center/engine/(id)/thrusters` or :http:get:`/space-center/rcs/(id)/thrusters`. .. note:: Engines can consist of multiple thrusters. For example, the S3 KS-25x4 "Mammoth" has four rocket nozzels, and so consists of four thrusters. A ``Thruster`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/thruster/(id)/part The :http:get:`/space-center/thruster/(id)/part` that contains this thruster. :param id: The identifier of the :ref:`Thruster ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/thruster/(id)/thrust The thrust being produced by the thruster, in Newtons. :param id: The identifier of the :ref:`Thruster ` object. :resjson float value: .. http:post:: /space-center/thruster/(id)/thrust-position The position at which the thruster generates thrust, in the given reference frame. For gimballed engines, this takes into account the current rotation of the gimbal. :param id: The identifier of the :ref:`Thruster ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:post:: /space-center/thruster/(id)/thrust-direction The direction of the force generated by the thruster, in the given reference frame. This is opposite to the direction in which the thruster expels propellant. For gimballed engines, this takes into account the current rotation of the gimbal. :param id: The identifier of the :ref:`Thruster ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned direction is in. :resjson tuple value: The direction as a unit vector. .. http:get:: /space-center/thruster/(id)/thrust-reference-frame A reference frame that is fixed relative to the thruster and orientated with its thrust direction (:http:post:`/space-center/thruster/(id)/thrust-direction`). For gimballed engines, this takes into account the current rotation of the gimbal. * The origin is at the position of thrust for this thruster (:http:post:`/space-center/thruster/(id)/thrust-position`). * The axes rotate with the thrust direction. This is the direction in which the thruster expels propellant, including any gimballing. * The y-axis points along the thrust direction. * The x-axis and z-axis are perpendicular to the thrust direction. :param id: The identifier of the :ref:`Thruster ` object. :resjson SpaceCenter.ReferenceFrame value: .. http:get:: /space-center/thruster/(id)/gimballed Whether the thruster is gimballed. :param id: The identifier of the :ref:`Thruster ` object. :resjson bool value: .. http:post:: /space-center/thruster/(id)/gimbal-position Position around which the gimbal pivots. :param id: The identifier of the :ref:`Thruster ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:get:: /space-center/thruster/(id)/gimbal-angle The current gimbal angle in the pitch, roll and yaw axes, in degrees. :param id: The identifier of the :ref:`Thruster ` object. :resjson tuple value: .. http:post:: /space-center/thruster/(id)/initial-thrust-position The position at which the thruster generates thrust, when the engine is in its initial position (no gimballing), in the given reference frame. .. note:: This position can move when the gimbal rotates. This is because the thrust position and gimbal position are not necessarily the same. :param id: The identifier of the :ref:`Thruster ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:post:: /space-center/thruster/(id)/initial-thrust-direction The direction of the force generated by the thruster, when the engine is in its initial position (no gimballing), in the given reference frame. This is opposite to the direction in which the thruster expels propellant. :param id: The identifier of the :ref:`Thruster ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned direction is in. :resjson tuple value: The direction as a unit vector. Wheel ^^^^^ .. _http-SpaceCenter.Wheel: .. rubric:: Wheel A wheel. Includes landing gear and rover wheels. Obtained by calling :http:get:`/space-center/part/(id)/wheel`. Can be used to control the motors, steering and deployment of wheels, among other things. A ``Wheel`` object is passed and returned as its identifier, a number. A path that acts on an object takes it as ``(id)``. .. http:get:: /space-center/wheel/(id)/part The part object for this wheel. :param id: The identifier of the :ref:`Wheel ` object. :resjson SpaceCenter.Part value: .. http:get:: /space-center/wheel/(id)/state The current state of the wheel. :param id: The identifier of the :ref:`Wheel ` object. :resjson SpaceCenter.DeployableState value: .. http:get:: /space-center/wheel/(id)/radius Radius of the wheel, in meters. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/grounded Whether the wheel is touching the ground. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:get:: /space-center/wheel/(id)/has-brakes Whether the wheel has brakes. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:get:: /space-center/wheel/(id)/brakes The braking force, as a percentage of maximum, when the brakes are applied. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:put:: /space-center/wheel/(id)/brakes The braking force, as a percentage of maximum, when the brakes are applied. :param id: The identifier of the :ref:`Wheel ` object. :reqjson float value: The new value. .. http:get:: /space-center/wheel/(id)/auto-friction-control Whether automatic friction control is enabled. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:put:: /space-center/wheel/(id)/auto-friction-control Whether automatic friction control is enabled. :param id: The identifier of the :ref:`Wheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/wheel/(id)/manual-friction-control Manual friction control value. Only has an effect if automatic friction control is disabled. A value between 0 and 5 inclusive. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:put:: /space-center/wheel/(id)/manual-friction-control Manual friction control value. Only has an effect if automatic friction control is disabled. A value between 0 and 5 inclusive. :param id: The identifier of the :ref:`Wheel ` object. :reqjson float value: The new value. .. http:get:: /space-center/wheel/(id)/deployable Whether the wheel is deployable. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:get:: /space-center/wheel/(id)/deployed Whether the wheel is deployed. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:put:: /space-center/wheel/(id)/deployed Whether the wheel is deployed. :param id: The identifier of the :ref:`Wheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/wheel/(id)/powered Whether the wheel is powered by a motor. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:get:: /space-center/wheel/(id)/motor-enabled Whether the motor is enabled. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:put:: /space-center/wheel/(id)/motor-enabled Whether the motor is enabled. :param id: The identifier of the :ref:`Wheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/wheel/(id)/motor-inverted Whether the direction of the motor is inverted. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:put:: /space-center/wheel/(id)/motor-inverted Whether the direction of the motor is inverted. :param id: The identifier of the :ref:`Wheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/wheel/(id)/motor-state Whether the direction of the motor is inverted. :param id: The identifier of the :ref:`Wheel ` object. :resjson SpaceCenter.MotorState value: .. http:get:: /space-center/wheel/(id)/motor-output The output of the motor. This is the torque currently being generated, in :math:`\mathrm{N \cdot m}`. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/traction-control-enabled Whether automatic traction control is enabled. A wheel only has traction control if it is powered. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:put:: /space-center/wheel/(id)/traction-control-enabled Whether automatic traction control is enabled. A wheel only has traction control if it is powered. :param id: The identifier of the :ref:`Wheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/wheel/(id)/traction-control Setting for the traction control. Only takes effect if the wheel has automatic traction control enabled. A value between 0 and 5 inclusive. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:put:: /space-center/wheel/(id)/traction-control Setting for the traction control. Only takes effect if the wheel has automatic traction control enabled. A value between 0 and 5 inclusive. :param id: The identifier of the :ref:`Wheel ` object. :reqjson float value: The new value. .. http:get:: /space-center/wheel/(id)/drive-limiter Manual setting for the motor limiter. Only takes effect if the wheel has automatic traction control disabled. A value between 0 and 100 inclusive. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:put:: /space-center/wheel/(id)/drive-limiter Manual setting for the motor limiter. Only takes effect if the wheel has automatic traction control disabled. A value between 0 and 100 inclusive. :param id: The identifier of the :ref:`Wheel ` object. :reqjson float value: The new value. .. http:get:: /space-center/wheel/(id)/steerable Whether the wheel has steering. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:get:: /space-center/wheel/(id)/steering-enabled Whether the wheel steering is enabled. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:put:: /space-center/wheel/(id)/steering-enabled Whether the wheel steering is enabled. :param id: The identifier of the :ref:`Wheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/wheel/(id)/steering-inverted Whether the wheel steering is inverted. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:put:: /space-center/wheel/(id)/steering-inverted Whether the wheel steering is inverted. :param id: The identifier of the :ref:`Wheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/wheel/(id)/steering-angle-auto Whether the steering angle is automatically limited based on the vessel's speed, reducing the maximum angle as the vessel moves faster. See also :http:get:`/space-center/wheel/(id)/steering-angle-limit`. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:put:: /space-center/wheel/(id)/steering-angle-auto Whether the steering angle is automatically limited based on the vessel's speed, reducing the maximum angle as the vessel moves faster. See also :http:get:`/space-center/wheel/(id)/steering-angle-limit`. :param id: The identifier of the :ref:`Wheel ` object. :reqjson bool value: The new value. .. http:get:: /space-center/wheel/(id)/steering-angle-limit The steering angle limit. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:put:: /space-center/wheel/(id)/steering-angle-limit The steering angle limit. :param id: The identifier of the :ref:`Wheel ` object. :reqjson float value: The new value. .. http:get:: /space-center/wheel/(id)/steering-response-time Steering response time. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:put:: /space-center/wheel/(id)/steering-response-time Steering response time. :param id: The identifier of the :ref:`Wheel ` object. :reqjson float value: The new value. .. http:get:: /space-center/wheel/(id)/has-suspension Whether the wheel has suspension. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:get:: /space-center/wheel/(id)/suspension-spring-strength Suspension spring strength, as set in the editor. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/suspension-damper-strength Suspension damper strength, as set in the editor. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/suspension-spring The spring constant of the suspension, in :math:`\mathrm{kN/m}`, or ``null`` while the wheel is not grounded. Throws an exception if the wheel has no suspension. .. note:: The game updates it while the wheel is grounded, from :http:get:`/space-center/wheel/(id)/suspension-spring-strength`, the vessel's mass, the wheel's compression and the local gravity. :param id: The identifier of the :ref:`Wheel ` object. :resjson float? value: .. http:get:: /space-center/wheel/(id)/suspension-damper The damping constant of the suspension, in :math:`\mathrm{kN \cdot s/m}`, or ``null`` while the wheel is not grounded. Throws an exception if the wheel has no suspension. .. note:: The game updates it while the wheel is grounded, from :http:get:`/space-center/wheel/(id)/suspension-damper-strength` and :http:get:`/space-center/wheel/(id)/suspension-spring`. :param id: The identifier of the :ref:`Wheel ` object. :resjson float? value: .. http:get:: /space-center/wheel/(id)/suspension-travel The travel of the suspension, in meters. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/load The force pressing the wheel into the ground, in :math:`\mathrm{kN}`. .. note:: The game raises the load of a grounded wheel to at least 0.5 kN, or 10 kN for a wheel with the old friction model. :http:get:`/space-center/wheel/(id)/impact-tolerance` applies to the rise in this value. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:post:: /space-center/wheel/(id)/contact-position The position of the bottom of the wheel, in the given reference frame. While the wheel is grounded, this is where it touches the ground. :param id: The identifier of the :ref:`Wheel ` object. :reqjson SpaceCenter.ReferenceFrame reference_frame: The reference frame that the returned position vector is in. :resjson tuple value: The position as a vector. .. http:get:: /space-center/wheel/(id)/broken Whether the wheel is broken. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:get:: /space-center/wheel/(id)/repairable Whether the wheel is repairable. :param id: The identifier of the :ref:`Wheel ` object. :resjson bool value: .. http:get:: /space-center/wheel/(id)/stress Current stress on the wheel. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/stress-tolerance Stress tolerance of the wheel. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/impact-tolerance The rise in :http:get:`/space-center/wheel/(id)/load` over one physics tick that breaks the wheel, in :math:`\mathrm{kN}`. Throws an exception if the wheel is not breakable. .. note:: The game scales the rise by the local gravity divided by standard gravity before comparing it with this tolerance. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/explode-multiplier The multiple of :http:get:`/space-center/wheel/(id)/impact-tolerance` that destroys the wheel, in place of breaking it. Throws an exception if the wheel is not breakable. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/stress-percentage Current stress on the wheel as a percentage of its stress tolerance. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/deflection Current deflection of the wheel. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. http:get:: /space-center/wheel/(id)/slip Current slip of the wheel. :param id: The identifier of the :ref:`Wheel ` object. :resjson float value: .. _http-SpaceCenter.MotorState: .. rubric:: MotorState The state of the motor on a powered wheel. See :http:get:`/space-center/wheel/(id)/motor-state`. Passed and returned as the name of one of its values: ``"idle"`` The motor is idle. ``"running"`` The motor is running. ``"disabled"`` The motor is disabled. ``"inoperable"`` The motor is inoperable. ``"not_enough_resources"`` The motor does not have enough resources to run.