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:
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:
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:
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:
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:
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:
Request JSON Object:
  • value (string) – The new value.

GET /infernal-robotics/servo-group/(id)/speed#

The speed multiplier for the group.

Parameters:
Response JSON Object:
  • value (float)

PUT /infernal-robotics/servo-group/(id)/speed#

The speed multiplier for the group.

Parameters:
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:
Response JSON Object:
  • value (bool)

PUT /infernal-robotics/servo-group/(id)/expanded#

Whether the group is expanded in the InfernalRobotics UI.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

GET /infernal-robotics/servo-group/(id)/vessel#

The vessel the group belongs to.

Parameters:
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:
Response JSON Object:
  • value (int32)

GET /infernal-robotics/servo-group/(id)/advanced-mode#

Whether the group is in advanced mode.

Parameters:
Response JSON Object:
  • value (bool)

PUT /infernal-robotics/servo-group/(id)/advanced-mode#

Whether the group is in advanced mode.

Parameters:
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:
Response JSON Object:
  • value (float)

GET /infernal-robotics/servo-group/(id)/build-aid#

Whether the build aid is enabled for the group.

Parameters:
Response JSON Object:
  • value (bool)

PUT /infernal-robotics/servo-group/(id)/build-aid#

Whether the build aid is enabled for the group.

Parameters:
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:
Response JSON Object:
  • value (bool)

PUT /infernal-robotics/servo-group/(id)/ik-active#

Whether inverse kinematics is active for the group.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

GET /infernal-robotics/servo-group/(id)/servos#

The servos that are in the group.

Parameters:
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 null if none exists.

Parameters:
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:
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:
POST /infernal-robotics/servo-group/(id)/move-left#

Moves all of the servos in the group to the left.

Parameters:
POST /infernal-robotics/servo-group/(id)/move-center#

Moves all of the servos in the group to the center.

Parameters:
POST /infernal-robotics/servo-group/(id)/move-next-preset#

Moves all of the servos in the group to the next preset.

Parameters:
POST /infernal-robotics/servo-group/(id)/move-prev-preset#

Moves all of the servos in the group to the previous preset.

Parameters:
POST /infernal-robotics/servo-group/(id)/stop#

Stops the servos in the group.

Parameters: