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
- Return type:
string
- forward_key: string#
The key assigned to be the “forward” key for the group.
- Attribute:
Can be read or written
- Return type:
string
- reverse_key: string#
The key assigned to be the “reverse” key for the group.
- Attribute:
Can be read or written
- Return type:
string
- speed: number#
The speed multiplier for the group.
- Attribute:
Can be read or written
- Return type:
number
- expanded: boolean#
Whether the group is expanded in the InfernalRobotics UI.
- Attribute:
Can be read or written
- Return type:
boolean
- servos: List#
The servos that are in the group.
- Attribute:
Read-only, cannot be set
- Return type:
List
- servo_with_name(name)#
Returns the servo with the given name from this group, or
nilif none exists.- Parameters:
name (
string) – Name of servo to find.- Return type:
- parts: List#
The parts containing the servos in the group.
- Attribute:
Read-only, cannot be set
- Return type:
List
- 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.