ServoGroup#

class InfernalRobotics.ServoGroup#

A group of servos, obtained by calling InfernalRobotics.servo_groups() or InfernalRobotics.servo_group_with_name(). Represents the “Servo Groups” in the InfernalRobotics UI.

name: string#

The name of the group.

Attribute:

Can be read or written

Return type:

string

forward_key: string#

The key assigned to be the “forward” key for the group.

Attribute:

Can be read or written

Return type:

string

reverse_key: string#

The key assigned to be the “reverse” key for the group.

Attribute:

Can be read or written

Return type:

string

speed: number#

The speed multiplier for the group.

Attribute:

Can be read or written

Return type:

number

expanded: boolean#

Whether the group is expanded in the InfernalRobotics UI.

Attribute:

Can be read or written

Return type:

boolean

vessel: SpaceCenter.Vessel#

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

Attribute:

Read-only, cannot be set

Return type:

SpaceCenter.Vessel

moving_direction: number#

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:

number

advanced_mode: boolean#

Whether the group is in advanced mode.

Attribute:

Can be read or written

Return type:

boolean

electric_charge_required: number#

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:

number

build_aid: boolean#

Whether the build aid is enabled for the group.

Attribute:

Can be read or written

Return type:

boolean

ik_active: boolean#

Whether inverse kinematics is active for the group.

Attribute:

Can be read or written

Return type:

boolean

servos: List#

The servos that are in the group.

Attribute:

Read-only, cannot be set

Return type:

List

servo_with_name(name)#

Returns the servo with the given name from this group, or nil if none exists.

Parameters:

name (string) – Name of servo to find.

Return type:

InfernalRobotics.Servo

parts: List#

The parts containing the servos in the group.

Attribute:

Read-only, cannot be set

Return type:

List

move_right()#

Moves all of the servos in the group to the right.

move_left()#

Moves all of the servos in the group to the left.

move_center()#

Moves all of the servos in the group to the center.

move_next_preset()#

Moves all of the servos in the group to the next preset.

move_prev_preset()#

Moves all of the servos in the group to the previous preset.

stop()#

Stops the servos in the group.