Skip to main content

Class AngularServoBase

Represents an angular servo base class

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

Inheritance: System.Object -> Meadow.Foundation.Servos.ServoBase

Derived:
Meadow.Foundation.Servos.Servo

Implements:
Meadow.Foundation.Servos.IAngularServo, Meadow.Foundation.Servos.IServo

Properties

Angle

The current angle

View Source
public Angle? Angle { get; protected set; }

Methods

RotateTo(Angle, bool)

Rotates the servo to a given angle

View Source
public Task RotateTo(Angle angle, bool stopAfterMotion = false)
Returns

System.Threading.Tasks.Task

Parameters
TypeNameDescription
Meadow.Units.AngleangleThe angle to rotate to
System.BooleanstopAfterMotionWhen true the PWM will stop after motion is complete

CalculatePulseDuration(Angle)

Calculate the pulse duration for an angle

View Source
protected float CalculatePulseDuration(Angle angle)
Returns

System.Single: The pulse duration as as float

Parameters
TypeNameDescription
Meadow.Units.AngleangleThe angle

Implements