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
-
SpaceCenter::Vessel vessel()#
The vessel the group belongs to, or
NULLif it is not available.- Game Scenes:
Flight
-
int32_t moving_direction()#
The direction the group is currently moving in: -1 for reverse, 0 for stopped and 1 for forward.
- Game Scenes:
Flight
-
bool advanced_mode()#
-
void set_advanced_mode(bool value)#
Whether the group is in advanced mode.
- Game Scenes:
Flight
-
float electric_charge_required()#
The total rate at which the servos in the group consume electric charge, in units per second, when moving.
- Game Scenes:
Flight
-
bool build_aid()#
-
void set_build_aid(bool value)#
Whether the build aid is enabled for the group.
- Game Scenes:
Flight
-
bool ik_active()#
-
void set_ik_active(bool value)#
Whether inverse kinematics is active for the group.
- Game Scenes:
Flight
-
Servo servo_with_name(std::string name)#
Returns the servo with the given name from this group, or
NULLif 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()#