Creates a GenericInertialCommandResponse with default values.
GenericInertialCommandResponse( |
| ) |
Creates a GenericInertialCommandResponse with the given parameters.
state ResponsePattern::State | The state of the response. |
success bool | Whether or not the command was a success. |
errorCode InertialPacket::MipAckNack | The MIP Ack/Nack error code received. |
cmdName std::string | The name of the command. |
data | The <ByteStream that holds the result data from the response (if any). |
static GenericInertialCommandResponse ResponseSuccess( |
| ) |
Creates a GenericInertialCommandResponse with a successful response.
cmdName std::string | The name of the command. |
data | The <ByteStream that holds the data from the response (if any). |
A GenericInertialCommandResponse representing a success response from the command.
static GenericInertialCommandResponse ResponseFail( |
| ) |
Creates a GenericInertialCommandResponse with a fail response.
errorState ResponsePattern::State | The state that caused the ResponseFail. |
errorCode InertialPacket::MipAckNack | The MIP Ack/Nack error code to set with the ResponseFail. |
cmdName std::string | The name of the command. |
A GenericInertialCommandResponse representing a failed response from the command.
Gets the data that was received from the response, if any.
A ByteStream that contains the data received from the response, if any.