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, stop
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forward, forward, getState, isState, isStopped, reverse, reverse, setState, stop
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
protected long stepIntervalMilliseconds
protected int stepIntervalNanoseconds
protected byte[] stepSequence
protected int stepsPerRevolution
public float getStepsPerRevolution()
getStepsPerRevolution
in interface StepperMotor
public void setStepsPerRevolution(int steps)
setStepsPerRevolution
in interface StepperMotor
public void setStepInterval(long milliseconds)
setStepInterval
in interface StepperMotor
public void setStepInterval(long milliseconds, int nanoseconds)
setStepInterval
in interface StepperMotor
public void setStepSequence(byte[] sequence)
setStepSequence
in interface StepperMotor
public byte[] getStepSequence()
getStepSequence
in interface StepperMotor
public void rotate(double revolutions)
rotate
in interface StepperMotor
public abstract void step(long steps)
step
in interface StepperMotor
Copyright © 2012–2014 Pi4J. All rights reserved.