ServoGroup#
ServoGroup
A group of servos, obtained by calling POST /infernal-robotics/servo-groups
or POST /infernal-robotics/servo-group-with-name. Represents the “Servo Groups”
in the InfernalRobotics UI.
A ServoGroup 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-group/(id)/name#
The name of the group.
Note
Renaming a group renames it for every servo in it. This object identifies the group by its name, so a rename destroys every object for the group, including the one the rename was made through. Obtain the group again under the new name.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (string)
- PUT /infernal-robotics/servo-group/(id)/name#
The name of the group.
Note
Renaming a group renames it for every servo in it. This object identifies the group by its name, so a rename destroys every object for the group, including the one the rename was made through. Obtain the group again under the new name.
- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
value (string) – The new value.
- GET /infernal-robotics/servo-group/(id)/forward-key#
The key assigned to be the “forward” key for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (string)
- PUT /infernal-robotics/servo-group/(id)/forward-key#
The key assigned to be the “forward” key for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
value (string) – The new value.
- GET /infernal-robotics/servo-group/(id)/reverse-key#
The key assigned to be the “reverse” key for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (string)
- PUT /infernal-robotics/servo-group/(id)/reverse-key#
The key assigned to be the “reverse” key for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
value (string) – The new value.
- GET /infernal-robotics/servo-group/(id)/speed#
The speed multiplier for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (float)
- PUT /infernal-robotics/servo-group/(id)/speed#
The speed multiplier for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
value (float) – The new value.
- GET /infernal-robotics/servo-group/(id)/expanded#
Whether the group is expanded in the InfernalRobotics UI.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (bool)
- PUT /infernal-robotics/servo-group/(id)/expanded#
Whether the group is expanded in the InfernalRobotics UI.
- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
value (bool) – The new value.
- GET /infernal-robotics/servo-group/(id)/vessel#
The vessel the group belongs to.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (SpaceCenter.Vessel)
- GET /infernal-robotics/servo-group/(id)/moving-direction#
The direction the group is currently moving in: -1 for reverse, 0 for stopped and 1 for forward.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (int32)
- GET /infernal-robotics/servo-group/(id)/advanced-mode#
Whether the group is in advanced mode.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (bool)
- PUT /infernal-robotics/servo-group/(id)/advanced-mode#
Whether the group is in advanced mode.
- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
value (bool) – The new value.
- GET /infernal-robotics/servo-group/(id)/electric-charge-required#
The total rate at which the servos in the group consume electric charge, in units per second, when moving.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (float)
- GET /infernal-robotics/servo-group/(id)/build-aid#
Whether the build aid is enabled for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (bool)
- PUT /infernal-robotics/servo-group/(id)/build-aid#
Whether the build aid is enabled for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
value (bool) – The new value.
- GET /infernal-robotics/servo-group/(id)/ik-active#
Whether inverse kinematics is active for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (bool)
- PUT /infernal-robotics/servo-group/(id)/ik-active#
Whether inverse kinematics is active for the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
value (bool) – The new value.
- GET /infernal-robotics/servo-group/(id)/servos#
The servos that are in the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (list<InfernalRobotics.Servo>)
- POST /infernal-robotics/servo-group/(id)/servo-with-name#
Returns the servo with the given name from this group, or
nullif none exists.- Parameters:
id – The identifier of the ServoGroup object.
- Request JSON Object:
name (string) – Name of servo to find.
- Response JSON Object:
value (InfernalRobotics.Servo?)
- GET /infernal-robotics/servo-group/(id)/parts#
The parts containing the servos in the group.
- Parameters:
id – The identifier of the ServoGroup object.
- Response JSON Object:
value (list<SpaceCenter.Part>)
- POST /infernal-robotics/servo-group/(id)/move-right#
Moves all of the servos in the group to the right.
- Parameters:
id – The identifier of the ServoGroup object.
- POST /infernal-robotics/servo-group/(id)/move-left#
Moves all of the servos in the group to the left.
- Parameters:
id – The identifier of the ServoGroup object.
- POST /infernal-robotics/servo-group/(id)/move-center#
Moves all of the servos in the group to the center.
- Parameters:
id – The identifier of the ServoGroup object.
- POST /infernal-robotics/servo-group/(id)/move-next-preset#
Moves all of the servos in the group to the next preset.
- Parameters:
id – The identifier of the ServoGroup object.
- POST /infernal-robotics/servo-group/(id)/move-prev-preset#
Moves all of the servos in the group to the previous preset.
- Parameters:
id – The identifier of the ServoGroup object.
- POST /infernal-robotics/servo-group/(id)/stop#
Stops the servos in the group.
- Parameters:
id – The identifier of the ServoGroup object.