Class AngularServo
Represents an angular servo
Assembly: Servos.dll
View Source
Declaration
public class AngularServo : ServoBase, IDisposable, IAngularServo, IServo
Inheritance: System.Object
-> Meadow.Foundation.Servos.ServoBase
Derived:
Meadow.Foundation.Servos.Ds3218
Implements:
System.IDisposable
, Meadow.Peripherals.Servos.IAngularServo
, Meadow.Peripherals.Servos.IServo
Properties
Angle
Gets the current angle of the servo.
View Source
Declaration
public Angle Angle { get; }
MinimumAngle
Gets the minimum angle that the servo can rotate to.
View Source
Declaration
public Angle MinimumAngle { get; }
MaximumAngle
Gets the maximum angle that the servo can rotate to.
View Source
Declaration
public Angle MaximumAngle { get; }
Methods
Dispose(bool)
View Source
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name |
---|---|
System.Boolean | disposing |
Neutral()
Sets the servo to its neutral position.
View Source
Declaration
public override void Neutral()
RotateTo(Angle)
Rotates the servo to the specified angle.
View Source
Declaration
public void RotateTo(Angle angle)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Units.Angle | angle | The target angle to rotate to. |
Implements
System.IDisposable
Meadow.Peripherals.Servos.IAngularServo
Meadow.Peripherals.Servos.IServo