Servo Class

Configures the range and the position setting of a servo motor. The Arduino pins assigned for servo motors are configured in the firmware settings.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public sealed class Servo
Inheritance
Object    Servo

Properties

Position Gets the current position angle of the servo that was set using SetPosition(Single). The value returned is not guaranteed to reflect the actual physical position of the servo, since it can take time for the servo to move to a given position, or the servo may have been manually re-positioned whilst in a stopped state.
Range Gets the servo range settings.

Methods

SetPosition Sets the position angle of a specified servo motor.
SetSpeed Sets the speed with which the servo moves to a specified position. The actual speed and range of speed will depend on the type of servo used. By default the servo is set to move at maximum speed.
Stop Stops the specified servo so it no longer maintains its position.

See Also