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
Type | Name | Description |
---|---|---|
System.Single | pulseDuration | Microseconds |
SendCommandPulse(float)
Send a command pulse
View Source
Declaration
protected virtual void SendCommandPulse(float pulseDuration)
Parameters
Type | Name | Description |
---|---|---|
System.Single | pulseDuration | The pulse duration |