Servo¶
- class InfernalRobotics.Servo¶
Represents a servo. Obtained using
InfernalRobotics.ServoGroup.servos
,InfernalRobotics.ServoGroup.servo_with_name()
orInfernalRobotics.servo_with_name()
.- name: string¶
The name of the servo.
- Attribute:
Can be read or written
- Return type:
string
- part: SpaceCenter.Part¶
The part containing the servo.
- Attribute:
Read-only, cannot be set
- Return type:
- highlight: boolean¶
Whether the servo should be highlighted in-game.
- Attribute:
Write-only, cannot be read
- Return type:
boolean
- position: number¶
The position of the servo.
- Attribute:
Read-only, cannot be set
- Return type:
number
- min_config_position: number¶
The minimum position of the servo, specified by the part configuration.
- Attribute:
Read-only, cannot be set
- Return type:
number
- max_config_position: number¶
The maximum position of the servo, specified by the part configuration.
- Attribute:
Read-only, cannot be set
- Return type:
number
- min_position: number¶
The minimum position of the servo, specified by the in-game tweak menu.
- Attribute:
Can be read or written
- Return type:
number
- max_position: number¶
The maximum position of the servo, specified by the in-game tweak menu.
- Attribute:
Can be read or written
- Return type:
number
- config_speed: number¶
The speed multiplier of the servo, specified by the part configuration.
- Attribute:
Read-only, cannot be set
- Return type:
number
- speed: number¶
The speed multiplier of the servo, specified by the in-game tweak menu.
- Attribute:
Can be read or written
- Return type:
number
- current_speed: number¶
The current speed at which the servo is moving.
- Attribute:
Read-only, cannot be set
- Return type:
number
- acceleration: number¶
The current speed multiplier set in the UI.
- Attribute:
Can be read or written
- Return type:
number
- is_moving: boolean¶
Whether the servo is moving.
- Attribute:
Read-only, cannot be set
- Return type:
boolean
- is_free_moving: boolean¶
Whether the servo is freely moving.
- Attribute:
Read-only, cannot be set
- Return type:
boolean
- is_locked: boolean¶
Whether the servo is locked.
- Attribute:
Can be read or written
- Return type:
boolean
- is_axis_inverted: boolean¶
Whether the servos axis is inverted.
- Attribute:
Can be read or written
- Return type:
boolean
- move_right()¶
Moves the servo to the right.
- move_left()¶
Moves the servo to the left.
- move_center()¶
Moves the servo to the center.
- move_to(position, speed)¶
Moves the servo to position and sets the speed multiplier to speed.
- Parameters:
position (
number
) – The position to move the servo to.speed (
number
) – Speed multiplier for the movement.
- stop()¶
Stops the servo.