Skip to main content

Class ServoBase

Servo base class

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

Derived:
Meadow.Foundation.Servos.AngularServoBase

Implements:
Meadow.Foundation.Servos.IServo

Properties​

PwmPort​

Gets the PWM port used to drive the servo

View Source​
Declaration
protected IPwmPort PwmPort { get; }

Config​

Gets the ServoConfig that describes this servo

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

Methods​

Stop()​

Stop the servo

View Source​
Declaration
public virtual void Stop()

CalculateDutyCycle(float)​

Note that this calculation expects a pulse duration in microseconds

View Source​
Declaration
protected float CalculateDutyCycle(float pulseDuration)
Returns​

System.Single

Parameters​
TypeNameDescription
System.SinglepulseDurationMicroseconds

SendCommandPulse(float)​

Send a command pulse

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

Implements​