Skip to main content

Class AngularServoBase

Represents an angular servo base class

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

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

Derived:
Meadow.Foundation.Servos.Servo

Implements:
Meadow.Foundation.Servos.IAngularServo

Properties

Angle

The current angle

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

Methods

RotateTo(Angle, bool)

Rotates the servo to a given angle

View Source
Declaration
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
Declaration
protected float CalculatePulseDuration(Angle angle)
Returns

System.Single: The pulse duration as as float

Parameters
TypeNameDescription
Meadow.Units.AngleangleThe angle

Implements