ServoGroup#
- class InfernalRobotics.ServoGroup#
A group of servos, obtained by calling
InfernalRobotics.servo_groups()orInfernalRobotics.servo_group_with_name(). Represents the “Servo Groups” in the InfernalRobotics UI.-
name:
string# The name of the group.
- Attribute:
Can be read or written
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.
-
forward_key:
string# The key assigned to be the “forward” key for the group.
- Attribute:
Can be read or written
-
reverse_key:
string# The key assigned to be the “reverse” key for the group.
- Attribute:
Can be read or written
-
speed:
number# The speed multiplier for the group.
- Attribute:
Can be read or written
-
expanded:
boolean# Whether the group is expanded in the InfernalRobotics UI.
- Attribute:
Can be read or written
-
vessel:
SpaceCenter.Vessel# The vessel the group belongs to.
- Attribute:
Read-only, cannot be set
-
moving_direction:
number# The direction the group is currently moving in: -1 for reverse, 0 for stopped and 1 for forward.
- Attribute:
Read-only, cannot be set
-
advanced_mode:
boolean# Whether the group is in advanced mode.
- Attribute:
Can be read or written
-
electric_charge_required:
number# The total rate at which the servos in the group consume electric charge, in units per second, when moving.
- Attribute:
Read-only, cannot be set
-
build_aid:
boolean# Whether the build aid is enabled for the group.
- Attribute:
Can be read or written
-
ik_active:
boolean# Whether inverse kinematics is active for the group.
- Attribute:
Can be read or written
-
servos:
List# The servos that are in the group.
- Attribute:
Read-only, cannot be set
-
servo_with_name(name:
string):InfernalRobotics.Servo|nil# Returns the servo with the given name from this group, or
nilif none exists.- Parameters:
name – Name of servo to find.
-
parts:
List# The parts containing the servos in the group.
- Attribute:
Read-only, cannot be set
- move_right()#
Moves all of the servos in the group to the right.
- move_left()#
Moves all of the servos in the group to the left.
- move_center()#
Moves all of the servos in the group to the center.
- move_next_preset()#
Moves all of the servos in the group to the next preset.
- move_prev_preset()#
Moves all of the servos in the group to the previous preset.
- stop()#
Stops the servos in the group.
-
name: