Servo
Spins objects attached to the hinge at the front when powered, to set angles.
Polysilicon
can be used to control its angle.
Activate
will increment the goal angle by the configured angle step (clockwise looking at its face).Deactivate
will decrement the goal angle (counter-clockwise).FlipFlop
will reset the angle to 0.
Microcontroller
s can also set a servo's angle with :SetAngle(targetAngle)
It is a craftable and spawnable non-flammable solid.
Here is a list of possible sizes that reach the maximum malleability (144) that have integer components: 1x144x1, 1x72x2, 1x48x3, 1x36x4, 1x24x6, 1x18x8, 1x16x9, 1x12x12, 2x36x2, 2x24x3, 2x18x4, 2x12x6, 2x9x8, 3x16x3, 3x12x4, 3x8x6, 4x9x4, 4x6x6, 8x6x3, 9x8x2, 9x4x4, 12x6x2, 12x4x3
At its default size (2x2x2) it has a durability of 10, at its maximum size it has a durability of 27.
By default, its colour is #a3a2a5.
It requires 1 Motor
and 2 Wire
to be crafted.
Methods
SetAngle(angle)
Sets the target angle of a servo just as would if you were configuring it.
The angle parameter is the angle of the servo in angular degrees. It is a number
.
Configurables
AngleStep
Determines the change in angle when a pulse is received by Polysilicon. It is a number
.
It ranges between -180 and 180.
Responsiveness
Determines how fast the servo attempts to correct its angle. It is a number
.
It ranges between 0 and 90.
ServoSpeed
Determines the speed at which the servo is driven. It is a number
.
It ranges between 0 and 20.
Events
Configured(configurerId)
Fires when the object is configured.
The configurerId parameter is the UserId
of the player who configured the object. It is a number
.