MonoBrick EV3 Firmware
Public Member Functions | Protected Member Functions | Properties | List of all members
MonoBrickFirmware.Movement.MotorBase Class Reference

Base class for EV3 motors More...

Inheritance diagram for MonoBrickFirmware.Movement.MotorBase:
MonoBrickFirmware.Movement.Motor MonoBrickFirmware.Movement.MotorSync

Public Member Functions

bool IsRunning ()
 Determines whether the motor(s) are running. More...
 
virtual void Brake ()
 Brake the motor (is still on but does not move) More...
 
virtual void Off ()
 Turn the motor off More...
 
virtual void SetPower (sbyte power)
 Sets the power of the motor. More...
 

Protected Member Functions

void CancelPolling ()
 
WaitHandle WaitForMotorsToStop ()
 
WaitHandle WaitForMotorsToStartAndStop ()
 

Properties

List< MotorPortPortList [get, set]
 Gets or sets the motor port this is set by the bitfield. Do not set this use the bitfield property instead More...
 
OutputBitfield BitField [get, set]
 Gets or sets the bit field. More...
 

Detailed Description

Base class for EV3 motors

Member Function Documentation

virtual void MonoBrickFirmware.Movement.MotorBase.Brake ( )
inlinevirtual

Brake the motor (is still on but does not move)

bool MonoBrickFirmware.Movement.MotorBase.IsRunning ( )
inline

Determines whether the motor(s) are running.

Returns
true if this motor is moving; otherwise, false.
virtual void MonoBrickFirmware.Movement.MotorBase.Off ( )
inlinevirtual

Turn the motor off

virtual void MonoBrickFirmware.Movement.MotorBase.SetPower ( sbyte  power)
inlinevirtual

Sets the power of the motor.

Parameters
powerPower to use.

Property Documentation

OutputBitfield MonoBrickFirmware.Movement.MotorBase.BitField
getsetprotected

Gets or sets the bit field.

The bit field.

List<MotorPort> MonoBrickFirmware.Movement.MotorBase.PortList
getsetprotected

Gets or sets the motor port this is set by the bitfield. Do not set this use the bitfield property instead

The port.


The documentation for this class was generated from the following file: