.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::InfernalRobotics ServoGroup ========== .. class:: ServoGroup A group of servos, obtained by calling :func:`servo_groups` or :func:`servo_group_with_name`. Represents the "Servo Groups" in the InfernalRobotics UI. .. function:: std::string name() .. function:: void set_name(std::string value) The name of the group. :Game Scenes: Flight .. function:: std::string forward_key() .. function:: void set_forward_key(std::string value) The key assigned to be the "forward" key for the group. :Game Scenes: Flight .. function:: std::string reverse_key() .. function:: void set_reverse_key(std::string value) The key assigned to be the "reverse" key for the group. :Game Scenes: Flight .. function:: float speed() .. function:: void set_speed(float value) The speed multiplier for the group. :Game Scenes: Flight .. function:: bool expanded() .. function:: void set_expanded(bool value) Whether the group is expanded in the InfernalRobotics UI. :Game Scenes: Flight .. function:: std::vector servos() The servos that are in the group. :Game Scenes: Flight .. function:: 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 .. function:: std::vector parts() The parts containing the servos in the group. :Game Scenes: Flight .. function:: void move_right() Moves all of the servos in the group to the right. :Game Scenes: Flight .. function:: void move_left() Moves all of the servos in the group to the left. :Game Scenes: Flight .. function:: void move_center() Moves all of the servos in the group to the center. :Game Scenes: Flight .. function:: void move_next_preset() Moves all of the servos in the group to the next preset. :Game Scenes: Flight .. function:: void move_prev_preset() Moves all of the servos in the group to the previous preset. :Game Scenes: Flight .. function:: void stop() Stops the servos in the group. :Game Scenes: Flight