Skip to main content

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, Meadow.Foundation.Servos.Hs322, Meadow.Foundation.Servos.Mg90s, Meadow.Foundation.Servos.Mg996, Meadow.Foundation.Servos.Ms24, Meadow.Foundation.Servos.Sg90, Meadow.Foundation.Servos.Tgy390dmh

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​
TypeName
System.Booleandisposing

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​
TypeNameDescription
Meadow.Units.AngleangleThe target angle to rotate to.

Implements​

  • System.IDisposable
  • Meadow.Peripherals.Servos.IAngularServo
  • Meadow.Peripherals.Servos.IServo