BowlerKernel
|
Public Member Functions | |
SetChannelValueCommand (int channel, int value, DyIOChannelMode mode) | |
SetChannelValueCommand (int channel, int value, float time, DyIOChannelMode mode) | |
SetChannelValueCommand (int channel, ISendable data) | |
SetChannelValueCommand (int channel, int value, DyIOChannelMode mode, boolean saveTheValue) | |
SetChannelValueCommand (int channel, int[] value, DyIOChannelMode mode) | |
BowlerDatagram | validate (BowlerDatagram data) throws InvalidResponseException |
![]() | |
byte[] | getCallingData () |
void | setOpCode (String opCode) |
String | getOpCode () |
void | setMethod (BowlerMethod method) |
BowlerMethod | getMethod () |
byte | getLength () |
byte[] | getBytes () |
String | toString () |
void | setData (ByteList data) |
ByteList | getCallingDataStorage () |
void | setNamespaceIndex (int namespaceIndex) |
int | getNamespaceIndex () |
Additional Inherited Members | |
![]() | |
static BowlerAbstractCommand | parse (BowlerDatagram data) |
The Class SetChannelValueCommand.
Definition at line 29 of file SetChannelValueCommand.java.
com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand | ( | int | channel, |
int | value, | ||
DyIOChannelMode | mode | ||
) |
Instantiates a new sets the channel value command.
channel | the channel |
value | the value |
mode | the mode |
Definition at line 38 of file SetChannelValueCommand.java.
References com.neuronrobotics.sdk.common.ByteList.add(), com.neuronrobotics.sdk.common.ByteList.addAs16(), com.neuronrobotics.sdk.common.ByteList.addAs32(), com.neuronrobotics.sdk.common.BowlerAbstractCommand.getCallingDataStorage(), com.neuronrobotics.sdk.common.BowlerMethod.POST, com.neuronrobotics.sdk.common.BowlerAbstractCommand.setMethod(), and com.neuronrobotics.sdk.common.BowlerAbstractCommand.setOpCode().
com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand | ( | int | channel, |
int | value, | ||
float | time, | ||
DyIOChannelMode | mode | ||
) |
channel | the DyIO pin to use |
value | the value to set the pin to |
time | the time it should take for the action to be performed in seconds |
mode | the mode the channel is in |
Definition at line 71 of file SetChannelValueCommand.java.
References com.neuronrobotics.sdk.common.ByteList.add(), com.neuronrobotics.sdk.common.ByteList.addAs16(), com.neuronrobotics.sdk.common.ByteList.addAs32(), com.neuronrobotics.sdk.common.BowlerAbstractCommand.getCallingDataStorage(), com.neuronrobotics.sdk.common.BowlerMethod.POST, com.neuronrobotics.sdk.common.BowlerAbstractCommand.setMethod(), and com.neuronrobotics.sdk.common.BowlerAbstractCommand.setOpCode().
com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand | ( | int | channel, |
ISendable | data | ||
) |
Instantiates a new sets the channel value command.
channel | the channel |
data | the data |
Definition at line 100 of file SetChannelValueCommand.java.
References com.neuronrobotics.sdk.common.ByteList.add(), com.neuronrobotics.sdk.common.BowlerAbstractCommand.data, com.neuronrobotics.sdk.common.BowlerAbstractCommand.getCallingDataStorage(), com.neuronrobotics.sdk.common.BowlerMethod.POST, com.neuronrobotics.sdk.common.BowlerAbstractCommand.setMethod(), and com.neuronrobotics.sdk.common.BowlerAbstractCommand.setOpCode().
com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand | ( | int | channel, |
int | value, | ||
DyIOChannelMode | mode, | ||
boolean | saveTheValue | ||
) |
channel | the DyIO pin to use |
value | the value to set the pin to |
mode | the mode the channel is in |
saveTheValue | if true, the value is saved as the starting position for the channel |
Definition at line 121 of file SetChannelValueCommand.java.
References com.neuronrobotics.sdk.common.ByteList.add(), com.neuronrobotics.sdk.common.BowlerMethod.CRITICAL, com.neuronrobotics.sdk.common.BowlerAbstractCommand.getCallingDataStorage(), com.neuronrobotics.sdk.common.BowlerMethod.POST, com.neuronrobotics.sdk.common.BowlerAbstractCommand.setMethod(), and com.neuronrobotics.sdk.common.BowlerAbstractCommand.setOpCode().
com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand | ( | int | channel, |
int[] | value, | ||
DyIOChannelMode | mode | ||
) |
channel | the DyIO pin to use |
value | the value to set the pin to |
mode | the mode the channel is in |
Definition at line 145 of file SetChannelValueCommand.java.
References com.neuronrobotics.sdk.common.ByteList.add(), com.neuronrobotics.sdk.common.BowlerAbstractCommand.getCallingDataStorage(), com.neuronrobotics.sdk.common.BowlerMethod.POST, com.neuronrobotics.sdk.common.BowlerAbstractCommand.setMethod(), and com.neuronrobotics.sdk.common.BowlerAbstractCommand.setOpCode().
BowlerDatagram com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.validate | ( | BowlerDatagram | data | ) | throws InvalidResponseException |
Determine if the return response was successful; throw an InvalidResponseExpection otherwise. Commands with more complicated validation should override this method and provide more specific checking.
data | the data |
InvalidResponseException | the invalid response exception |
Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractCommand.
Definition at line 163 of file SetChannelValueCommand.java.
References com.neuronrobotics.sdk.common.BowlerAbstractCommand.data.