Servo

class Servo

Represents a servo. Obtained using ServoGroup.servos, ServoGroup.servo_with_name() or servo_with_name().

name

The name of the servo.

Attribute:

Can be read or written

Return type:

str

Game Scenes:

Flight

part

The part containing the servo.

Attribute:

Read-only, cannot be set

Return type:

SpaceCenter.Part

Game Scenes:

Flight

highlight

Whether the servo should be highlighted in-game.

Attribute:

Write-only, cannot be read

Return type:

bool

Game Scenes:

Flight

position

The position of the servo.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

min_config_position

The minimum position of the servo, specified by the part configuration.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

max_config_position

The maximum position of the servo, specified by the part configuration.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

min_position

The minimum position of the servo, specified by the in-game tweak menu.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

max_position

The maximum position of the servo, specified by the in-game tweak menu.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

config_speed

The speed multiplier of the servo, specified by the part configuration.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

speed

The speed multiplier of the servo, specified by the in-game tweak menu.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

current_speed

The current speed at which the servo is moving.

Attribute:

Read-only, cannot be set

Return type:

float

Game Scenes:

Flight

acceleration

The current speed multiplier set in the UI.

Attribute:

Can be read or written

Return type:

float

Game Scenes:

Flight

is_moving

Whether the servo is moving.

Attribute:

Read-only, cannot be set

Return type:

bool

Game Scenes:

Flight

is_free_moving

Whether the servo is freely moving.

Attribute:

Read-only, cannot be set

Return type:

bool

Game Scenes:

Flight

is_locked

Whether the servo is locked.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

is_axis_inverted

Whether the servos axis is inverted.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

move_right()

Moves the servo to the right.

Game Scenes:

Flight

move_left()

Moves the servo to the left.

Game Scenes:

Flight

move_center()

Moves the servo to the center.

Game Scenes:

Flight

move_to(position, speed)

Moves the servo to position and sets the speed multiplier to speed.

Parameters:
  • position (float) – The position to move the servo to.

  • speed (float) – Speed multiplier for the movement.

Game Scenes:

Flight

stop()

Stops the servo.

Game Scenes:

Flight