ServoGroup¶
-
class ServoGroup¶
A group of servos, obtained by calling
servo_groups()
orservo_group_with_name()
. Represents the “Servo Groups” in the InfernalRobotics UI.-
std::string name()¶
-
void set_name(std::string value)¶
The name of the group.
- Game Scenes:
Flight
-
std::string forward_key()¶
-
void set_forward_key(std::string value)¶
The key assigned to be the “forward” key for the group.
- Game Scenes:
Flight
-
std::string reverse_key()¶
-
void set_reverse_key(std::string value)¶
The key assigned to be the “reverse” key for the group.
- Game Scenes:
Flight
-
float speed()¶
-
void set_speed(float value)¶
The speed multiplier for the group.
- Game Scenes:
Flight
-
bool expanded()¶
-
void set_expanded(bool value)¶
Whether the group is expanded in the InfernalRobotics UI.
- Game Scenes:
Flight
-
Servo servo_with_name(std::string name)¶
Returns the servo with the given name from this group, or
NULL
if none exists.- Parameters:
name – Name of servo to find.
- Game Scenes:
Flight
-
std::vector<SpaceCenter::Part> parts()¶
The parts containing the servos in the group.
- Game Scenes:
Flight
-
void move_right()¶
Moves all of the servos in the group to the right.
- Game Scenes:
Flight
-
void move_left()¶
Moves all of the servos in the group to the left.
- Game Scenes:
Flight
-
void move_center()¶
Moves all of the servos in the group to the center.
- Game Scenes:
Flight
-
void move_next_preset()¶
Moves all of the servos in the group to the next preset.
- Game Scenes:
Flight
-
void move_prev_preset()¶
Moves all of the servos in the group to the previous preset.
- Game Scenes:
Flight
-
void stop()¶
Stops the servos in the group.
- Game Scenes:
Flight
-
std::string name()¶