BowlerKernel
Public Member Functions | List of all members
com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand Class Reference
Inheritance diagram for com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractCommand
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 Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractCommand
static BowlerAbstractCommand parse (BowlerDatagram data)
 

Detailed Description

The Class SetChannelValueCommand.

Definition at line 29 of file SetChannelValueCommand.java.

Constructor & Destructor Documentation

◆ SetChannelValueCommand() [1/5]

com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand ( int  channel,
int  value,
DyIOChannelMode  mode 
)

◆ SetChannelValueCommand() [2/5]

com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand ( int  channel,
int  value,
float  time,
DyIOChannelMode  mode 
)

◆ SetChannelValueCommand() [3/5]

com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand ( int  channel,
ISendable  data 
)

◆ SetChannelValueCommand() [4/5]

com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand ( int  channel,
int  value,
DyIOChannelMode  mode,
boolean  saveTheValue 
)

SetChannelValueCommand.

Parameters
channelthe DyIO pin to use
valuethe value to set the pin to
modethe mode the channel is in
saveTheValueif 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().

Here is the call graph for this function:

◆ SetChannelValueCommand() [5/5]

com.neuronrobotics.sdk.commands.bcs.io.SetChannelValueCommand.SetChannelValueCommand ( int  channel,
int[]  value,
DyIOChannelMode  mode 
)

Member Function Documentation

◆ validate()

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.

Parameters
datathe data
Returns
the incoming response
Exceptions
InvalidResponseExceptionthe 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.


The documentation for this class was generated from the following file: