Servo#
Servo
Represents a servo. Obtained using
GET /infernal-robotics/servo-group/(id)/servos,
POST /infernal-robotics/servo-group/(id)/servo-with-name
or POST /infernal-robotics/servo-with-name.
A Servo object is passed and returned as its identifier, a number. A path that acts on
an object takes it as (id).
- GET /infernal-robotics/servo/(id)/name#
The name of the servo.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (string)
- PUT /infernal-robotics/servo/(id)/name#
The name of the servo.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (string) – The new value.
- GET /infernal-robotics/servo/(id)/uid#
The unique identifier of the servo.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (uint32)
- GET /infernal-robotics/servo/(id)/part#
The part containing the servo.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (SpaceCenter.Part)
- GET /infernal-robotics/servo/(id)/mode#
Whether the part acts as a servo or a rotor.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (InfernalRobotics.ServoMode)
- PUT /infernal-robotics/servo/(id)/highlight#
Whether the servo should be highlighted in-game.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (bool) – The new value.
- GET /infernal-robotics/servo/(id)/position#
The position of the servo.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/min-config-position#
The minimum position of the servo, specified by the part configuration.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/max-config-position#
The maximum position of the servo, specified by the part configuration.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/min-position#
The minimum position of the servo, specified by the in-game tweak menu.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo/(id)/min-position#
The minimum position of the servo, specified by the in-game tweak menu.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo/(id)/max-position#
The maximum position of the servo, specified by the in-game tweak menu.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo/(id)/max-position#
The maximum position of the servo, specified by the in-game tweak menu.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo/(id)/config-speed#
The speed multiplier of the servo, specified by the part configuration.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/speed#
The speed multiplier of the servo, specified by the in-game tweak menu.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo/(id)/speed#
The speed multiplier of the servo, specified by the in-game tweak menu.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo/(id)/current-speed#
The current speed at which the servo is moving.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/acceleration#
The current speed multiplier set in the UI.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo/(id)/acceleration#
The current speed multiplier set in the UI.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo/(id)/is-moving#
Whether the servo is moving.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- GET /infernal-robotics/servo/(id)/is-free-moving#
Whether the servo is freely moving.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- GET /infernal-robotics/servo/(id)/is-locked#
Whether the servo is locked.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- PUT /infernal-robotics/servo/(id)/is-locked#
Whether the servo is locked.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (bool) – The new value.
- GET /infernal-robotics/servo/(id)/is-axis-inverted#
Whether the servos axis is inverted.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- PUT /infernal-robotics/servo/(id)/is-axis-inverted#
Whether the servos axis is inverted.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (bool) – The new value.
- GET /infernal-robotics/servo/(id)/target-position#
The target position the servo is moving towards.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/target-speed#
The target speed the servo is moving at.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/commanded-position#
The position the servo is currently being commanded to move to.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/default-position#
The default (built) position of the servo.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/force-limit#
The force limit of the servo, as a percentage of the maximum force.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo/(id)/force-limit#
The force limit of the servo, as a percentage of the maximum force.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo/(id)/max-force#
The maximum force the servo can generate.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/max-acceleration#
The maximum acceleration the servo can achieve.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/max-speed#
The maximum speed the servo can achieve.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/electric-charge-required#
The rate at which the servo consumes electric charge, in \(\mathrm{units/s}\), when moving.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo/(id)/spring-power#
The strength of the servo’s spring, when it has one.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo/(id)/spring-power#
The strength of the servo’s spring, when it has one.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo/(id)/damping-power#
The strength of the servo’s damping.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo/(id)/damping-power#
The strength of the servo’s damping.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo/(id)/rotor-acceleration#
The acceleration of the servo when operating as a rotor.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo/(id)/rotor-acceleration#
The acceleration of the servo when operating as a rotor.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo/(id)/is-limited#
Whether the servo’s range of movement is limited to the configured minimum and maximum positions.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- PUT /infernal-robotics/servo/(id)/is-limited#
Whether the servo’s range of movement is limited to the configured minimum and maximum positions.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
value (bool) – The new value.
- GET /infernal-robotics/servo/(id)/is-rotational#
Whether the servo moves rotationally (as opposed to linearly).
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- GET /infernal-robotics/servo/(id)/is-servo#
Whether the part is operating as a servo (rather than a rotor).
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- GET /infernal-robotics/servo/(id)/can-have-limits#
Whether the servo can have its range of movement limited.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- GET /infernal-robotics/servo/(id)/has-spring#
Whether the servo has a spring.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- GET /infernal-robotics/servo/(id)/is-running#
Whether the servo is running, when operating as a rotor.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (bool)
- GET /infernal-robotics/servo/(id)/preset-positions#
The list of preset positions configured for the servo.
- Parameters:
id – The identifier of the Servo object.
- Response JSON Object:
value (list<float>)
- POST /infernal-robotics/servo/(id)/move-right#
Moves the servo to the right.
- Parameters:
id – The identifier of the Servo object.
- POST /infernal-robotics/servo/(id)/move-left#
Moves the servo to the left.
- Parameters:
id – The identifier of the Servo object.
- POST /infernal-robotics/servo/(id)/move-center#
Moves the servo to the center.
- Parameters:
id – The identifier of the Servo object.
- POST /infernal-robotics/servo/(id)/move-to#
Moves the servo to position and sets the speed multiplier to speed.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
position (float) – The position to move the servo to.
speed (float) – Speed multiplier for the movement.
- POST /infernal-robotics/servo/(id)/stop#
Stops the servo.
- Parameters:
id – The identifier of the Servo object.
- POST /infernal-robotics/servo/(id)/add-preset#
Adds a preset position to the servo.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
position (float) – The position of the preset.
- POST /infernal-robotics/servo/(id)/remove-preset-at#
Removes the preset position at the given index.
- Parameters:
id – The identifier of the Servo object.
- Request JSON Object:
index (int32) – The index of the preset to remove.
- POST /infernal-robotics/servo/(id)/sort-presets#
Sorts the preset positions of the servo into ascending order.
- Parameters:
id – The identifier of the Servo object.
ServoMode
The mode a servo is operating in. See GET /infernal-robotics/servo/(id)/mode.
Passed and returned as the name of one of its values:
"servo"The part acts as a servo, driving towards a target position.
"rotor"The part acts as a rotor, spinning continuously.