public abstract class StepperMotorBase extends MotorBase implements StepperMotor
| Modifier and Type | Field and Description |
|---|---|
protected long |
stepIntervalMilliseconds |
protected int |
stepIntervalNanoseconds |
protected byte[] |
stepSequence |
protected int |
stepsPerRevolution |
| Constructor and Description |
|---|
StepperMotorBase() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getStepSequence() |
float |
getStepsPerRevolution() |
void |
rotate(double revolutions) |
void |
setStepInterval(long milliseconds) |
void |
setStepInterval(long milliseconds,
int nanoseconds) |
void |
setStepSequence(byte[] sequence) |
void |
setStepsPerRevolution(int steps) |
abstract void |
step(long steps) |
forward, forward, getState, isState, isStopped, reverse, reverse, setState, stopclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforward, forward, getState, isState, isStopped, reverse, reverse, setState, stopclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagprotected long stepIntervalMilliseconds
protected int stepIntervalNanoseconds
protected byte[] stepSequence
protected int stepsPerRevolution
public float getStepsPerRevolution()
getStepsPerRevolution in interface StepperMotorpublic void setStepsPerRevolution(int steps)
setStepsPerRevolution in interface StepperMotorpublic void setStepInterval(long milliseconds)
setStepInterval in interface StepperMotorpublic void setStepInterval(long milliseconds,
int nanoseconds)
setStepInterval in interface StepperMotorpublic void setStepSequence(byte[] sequence)
setStepSequence in interface StepperMotorpublic byte[] getStepSequence()
getStepSequence in interface StepperMotorpublic void rotate(double revolutions)
rotate in interface StepperMotorpublic abstract void step(long steps)
step in interface StepperMotorCopyright © 2012-2013 Pi4J. All Rights Reserved.