Servo#

public class Servo#

Represents a servo. Obtained using ServoGroup.getServos(), ServoGroup.servoWithName(String) or servoWithName(SpaceCenter.Vessel, String).

String getName()#
void setName(String value)#

The name of the servo.

Game Scenes:

Flight

SpaceCenter.Part getPart()#

The part containing the servo.

Game Scenes:

Flight

void setHighlight(boolean value)#

Whether the servo should be highlighted in-game.

Game Scenes:

Flight

float getPosition()#

The position of the servo.

Game Scenes:

Flight

float getMinConfigPosition()#

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

Game Scenes:

Flight

float getMaxConfigPosition()#

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

Game Scenes:

Flight

float getMinPosition()#
void setMinPosition(float value)#

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

Game Scenes:

Flight

float getMaxPosition()#
void setMaxPosition(float value)#

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

Game Scenes:

Flight

float getConfigSpeed()#

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

Game Scenes:

Flight

float getSpeed()#
void setSpeed(float value)#

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

Game Scenes:

Flight

float getCurrentSpeed()#

The current speed at which the servo is moving.

Game Scenes:

Flight

float getAcceleration()#
void setAcceleration(float value)#

The current speed multiplier set in the UI.

Game Scenes:

Flight

boolean getIsMoving()#

Whether the servo is moving.

Game Scenes:

Flight

boolean getIsFreeMoving()#

Whether the servo is freely moving.

Game Scenes:

Flight

boolean getIsLocked()#
void setIsLocked(boolean value)#

Whether the servo is locked.

Game Scenes:

Flight

boolean getIsAxisInverted()#
void setIsAxisInverted(boolean value)#

Whether the servos axis is inverted.

Game Scenes:

Flight

void moveRight()#

Moves the servo to the right.

Game Scenes:

Flight

void moveLeft()#

Moves the servo to the left.

Game Scenes:

Flight

void moveCenter()#

Moves the servo to the center.

Game Scenes:

Flight

void moveTo(float position, float 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

void stop()#

Stops the servo.

Game Scenes:

Flight