ServoGroup#

class ServoGroup#

A group of servos, obtained by calling servo_groups() or servo_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

vessel#

The vessel the group belongs to, or None if it is not available.

Attribute:

Read-only, cannot be set

Return type:

SpaceCenter.Vessel

Game Scenes:

Flight

moving_direction#

The direction the group is currently moving in: -1 for reverse, 0 for stopped and 1 for forward.

Attribute:

Read-only, cannot be set

Return type:

int

Game Scenes:

Flight

advanced_mode#

Whether the group is in advanced mode.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

electric_charge_required#

The total rate at which the servos in the group consume electric charge, in units per second, when moving.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

build_aid#

Whether the build aid is enabled for the group.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

ik_active#

Whether inverse kinematics is active for the group.

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:

Servo

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