Skip to main content

Interface IContinuousRotationServo

Represents a continuous rotation servo interface, extending the basic servo interface with additional properties and methods for controlling rotation.

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface IContinuousRotationServo : IServo

Properties

Direction

Gets the current direction of rotation.

View Source
Declaration
RotationDirection Direction { get; }

Speed

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

View Source
Declaration
double Speed { get; }

Methods

Rotate(RotationDirection, double)

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

View Source
Declaration
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).