|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.reprap.comms.OutgoingMessage org.reprap.devices.SNAPStepperMotor.RequestSetSpeed
protected class SNAPStepperMotor.RequestSetSpeed
Field Summary | |
---|---|
(package private) byte[] |
message
|
Constructor Summary | |
---|---|
SNAPStepperMotor.RequestSetSpeed()
The empty constructor will create a message to idle the motor |
|
SNAPStepperMotor.RequestSetSpeed(int speed)
Create a message for setting the motor speed. |
Method Summary | |
---|---|
byte[] |
getBinary()
Fetch the binary payload corresponding to the completed message |
Methods inherited from class org.reprap.comms.OutgoingMessage |
---|
getReplyContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
byte[] message
Constructor Detail |
---|
SNAPStepperMotor.RequestSetSpeed()
SNAPStepperMotor.RequestSetSpeed(int speed)
speed
- The speed to set the motor to. Note that specifying
0 will stop the motor and hold it at 0 and thus still draws
high current. To idle the motor, use the message created by the
empty constructor.Method Detail |
---|
public byte[] getBinary()
OutgoingMessage
getBinary
in class OutgoingMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |