Skip to main content

Class ServoBase

Servo base class

Assembly: ServoCore.dll
View Source
public abstract class ServoBase : IServo

Derived:
Meadow.Foundation.Servos.AngularServoBase, Meadow.Foundation.Servos.ContinuousRotationServoBase

Implements:
Meadow.Foundation.Servos.IServo

Properties

PwmPort

Gets the PWM port used to drive the Servo

View Source
protected IPwmPort PwmPort { get; }

Config

Gets the ServoConfig that describes this servo.

View Source
public ServoConfig Config { get; protected set; }

Methods

Stop()

Stop the servo

View Source
public virtual void Stop()

CalculateDutyCycle(float)

Note that this calculation expects a pulse duration in microseconds

View Source
protected float CalculateDutyCycle(float pulseDuration)
Returns

System.Single

Parameters
TypeNameDescription
System.SinglepulseDurationMicroseconds

SendCommandPulse(float)

Send a command pulse

View Source
protected virtual void SendCommandPulse(float pulseDuration)
Parameters
TypeNameDescription
System.SinglepulseDurationThe pulse duration

Implements