C# Класс CyrusBuilt.MonoPi.Components.Motors.StepperMotorBase

A base class for stepper motor components.
Наследование: MotorBase, IStepperMotor
Показать файл Открыть проект

Открытые методы

Метод Описание
Rotate ( Double revolutions ) : void

Rotate the specified revolutions.

SetStepInterval ( Int32 millis ) : void

Sets the step interval.

SetStepInterval ( Int32 millis, Int32 nanoseconds ) : void

Sets the step interval.

Step ( Int32 steps ) : void

Step the motor the specified steps.

Защищенные методы

Метод Описание
OnMotorRotationStarted ( MotorRotateEventArgs e ) : void

Raises the motor rotation started event.

OnMotorRotationStopped ( EventArgs e ) : void

Raises the motor rotation stopped event.

StepperMotorBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Motors.StepperMotorBase class. This is the default constructor.

Описание методов

OnMotorRotationStarted() защищенный Метод

Raises the motor rotation started event.
protected OnMotorRotationStarted ( MotorRotateEventArgs e ) : void
e MotorRotateEventArgs /// The event arguments. ///
Результат void

OnMotorRotationStopped() защищенный Метод

Raises the motor rotation stopped event.
protected OnMotorRotationStopped ( EventArgs e ) : void
e System.EventArgs /// The event arguments. ///
Результат void

Rotate() публичный Метод

Rotate the specified revolutions.
public Rotate ( Double revolutions ) : void
revolutions Double /// The number of revolutions to rotate. ///
Результат void

SetStepInterval() публичный Метод

Sets the step interval.
public SetStepInterval ( Int32 millis ) : void
millis System.Int32 /// The milliseconds between steps. ///
Результат void

SetStepInterval() публичный Метод

Sets the step interval.
public SetStepInterval ( Int32 millis, Int32 nanoseconds ) : void
millis System.Int32 /// The milliseconds between steps. ///
nanoseconds System.Int32 /// The nanoseconds between steps. ///
Результат void

Step() публичный абстрактный Метод

Step the motor the specified steps.
public abstract Step ( Int32 steps ) : void
steps System.Int32 /// The number of steps to rotate. ///
Результат void

StepperMotorBase() защищенный Метод

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Motors.StepperMotorBase class. This is the default constructor.
protected StepperMotorBase ( ) : System
Результат System