ServoGroup¶
- class ServoGroup¶
A group of servos, obtained by calling
servo_groups()
orservo_group_with_name()
. Represents the “Servo Groups” in the InfernalRobotics UI.- name¶
The name of the group.
- Attribute:
Can be read or written
- Return type:
str
- Game Scenes:
Flight
- forward_key¶
The key assigned to be the “forward” key for the group.
- Attribute:
Can be read or written
- Return type:
str
- Game Scenes:
Flight
- reverse_key¶
The key assigned to be the “reverse” key for the group.
- Attribute:
Can be read or written
- Return type:
str
- Game Scenes:
Flight
- speed¶
The speed multiplier for the group.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- expanded¶
Whether the group is expanded in the InfernalRobotics UI.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- servos¶
The servos that are in the group.
- Attribute:
Read-only, cannot be set
- Return type:
list(
Servo
)- Game Scenes:
Flight
- servo_with_name(name)¶
Returns the servo with the given name from this group, or
None
if none exists.- Parameters:
name (str) – Name of servo to find.
- Return type:
- Game Scenes:
Flight
- parts¶
The parts containing the servos in the group.
- Attribute:
Read-only, cannot be set
- Return type:
list(
SpaceCenter.Part
)- Game Scenes:
Flight
- move_right()¶
Moves all of the servos in the group to the right.
- Game Scenes:
Flight
- move_left()¶
Moves all of the servos in the group to the left.
- Game Scenes:
Flight
- move_center()¶
Moves all of the servos in the group to the center.
- Game Scenes:
Flight
- move_next_preset()¶
Moves all of the servos in the group to the next preset.
- Game Scenes:
Flight
- move_prev_preset()¶
Moves all of the servos in the group to the previous preset.
- Game Scenes:
Flight
- stop()¶
Stops the servos in the group.
- Game Scenes:
Flight