Servo#

class Servo#

Represents a servo. Obtained using ServoGroup.Servos, ServoGroup.ServoWithName or InfernalRobotics.ServoWithName.

String Name { get; set; }#

The name of the servo.

Game Scenes:

Flight

SpaceCenter.Part Part { get; }#

The part containing the servo.

Game Scenes:

Flight

Boolean Highlight { set; }#

Whether the servo should be highlighted in-game.

Game Scenes:

Flight

Single Position { get; }#

The position of the servo.

Game Scenes:

Flight

Single MinConfigPosition { get; }#

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

Game Scenes:

Flight

Single MaxConfigPosition { get; }#

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

Game Scenes:

Flight

Single MinPosition { get; set; }#

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

Game Scenes:

Flight

Single MaxPosition { get; set; }#

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

Game Scenes:

Flight

Single ConfigSpeed { get; }#

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

Game Scenes:

Flight

Single Speed { get; set; }#

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

Game Scenes:

Flight

Single CurrentSpeed { get; }#

The current speed at which the servo is moving.

Game Scenes:

Flight

Single Acceleration { get; set; }#

The current speed multiplier set in the UI.

Game Scenes:

Flight

Boolean IsMoving { get; }#

Whether the servo is moving.

Game Scenes:

Flight

Boolean IsFreeMoving { get; }#

Whether the servo is freely moving.

Game Scenes:

Flight

Boolean IsLocked { get; set; }#

Whether the servo is locked.

Game Scenes:

Flight

Boolean IsAxisInverted { get; set; }#

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 (Single position, Single speed)#

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

Parameters:
  • position – The position to move the servo to.

  • speed – Speed multiplier for the movement.

Game Scenes:

Flight

void Stop ()#

Stops the servo.

Game Scenes:

Flight