Skip to main content

Class BidirectionalDcMotor

A generic DC motor whose direction is dictated by two outputs (i.e. a pair of polarity relays)

Assembly: Meadow.Foundation.dll
View Source
public class BidirectionalDcMotor

Properties

State

Gets the current run state of the motor

View Source
public BidirectionalDcMotor.MotorState State { get; }

Methods

Stop()

Stop turning the motor

View Source
public void Stop()

StartClockwise()

Start turning the motor clockwise

View Source
public void StartClockwise()

StartCounterClockwise()

Start turning the motor counter/anti clockwise

View Source
public void StartCounterClockwise()

Events

StateChanged

Occurs when the state of the motor changes

View Source
public event EventHandler<BidirectionalDcMotor.MotorState> StateChanged
Event Type

System.EventHandler<Meadow.Foundation.Motors.BidirectionalDcMotor.MotorState>