Skip to main content

Class ContinuousRotationServo

Represents a continuous rotation servo, extending the base servo functionality.

Assembly: Servos.dll
View Source
Declaration
public class ContinuousRotationServo : ServoBase, IDisposable, IContinuousRotationServo, IServo

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

Derived:
Meadow.Foundation.Servos.Fs90r

Implements:
System.IDisposable, Meadow.Peripherals.Servos.IContinuousRotationServo, Meadow.Peripherals.Servos.IServo

Properties

Speed

Gets the current speed of rotation, between 0.0 (stopped) and 1.0 (full speed).

View Source
Declaration
public double Speed { get; }

Direction

Gets the current direction of rotation.

View Source
Declaration
public RotationDirection Direction { get; }

Methods

Rotate(RotationDirection, double)

Rotates the servo in the specified direction at the specified speed.

View Source
Declaration
public void Rotate(RotationDirection direction, double speed)
Parameters
TypeNameDescription
Meadow.Peripherals.RotationDirectiondirectionThe direction of rotation.
System.DoublespeedThe speed of rotation, between 0.0 (stopped) and 1.0 (full speed).

Disable()

Disables the servo, stopping any movement.

View Source
Declaration
public override void Disable()

Neutral()

Sets the servo to its neutral position.

View Source
Declaration
public override void Neutral()

Implements

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