29 #ifndef SVHSERIALPACKET_H    30 #define SVHSERIALPACKET_H    32 #include <icl_comm/ByteOrderConversion.h>    74   std::vector <uint8_t> 
data;
    92        && data == other.
data);
   106 #endif // SVHSERIALPACKET_H const uint8_t PACKET_HEADER1
Header sync byte 1. 
 
const uint8_t SVH_GET_POSITION_SETTINGS
Requests the active settings of the position controller. 
 
const uint8_t PACKET_HEADER2
Header sync byte 2. 
 
SVHSerialPacket(size_t _data_length=0, uint8_t _address=SVH_GET_CONTROL_FEEDBACK)
SVHSerialPacket contains the send and received data in raw format (bytewise) 
 
const uint8_t SVH_GET_CONTROL_FEEDBACK
Request the position and current of a channel to be sent. 
 
const uint8_t SVH_SET_CONTROL_COMMAND
Sets the target position of a channel. 
 
const uint8_t SVH_SET_ENCODER_VALUES
Set new encoder scalings. 
 
uint8_t address
Adress denotes the actual function of the package. 
 
const uint8_t SVH_GET_CONTROLLER_STATE
Requests the state of the controller (active,faults,enabled channels) 
 
icl_comm::ArrayBuilder & operator>>(icl_comm::ArrayBuilder &ab, SVHControlCommand &data)
overload stream operator to easily deserialize control commands for one channel 
 
std::vector< uint8_t > data
Payload of the package. 
 
const uint8_t SVH_SET_CONTROLLER_STATE
Sets new controller states (enable channels, clear faults) 
 
const size_t cPACKET_APPENDIX_SIZE
The packet overhead size in bytes. 
 
const uint8_t SVH_GET_ENCODER_VALUES
Request the current encoder scalings. 
 
const uint8_t SVH_SET_CURRENT_SETTINGS
Sets new settings for the current controller. 
 
icl_comm::ArrayBuilder & operator<<(icl_comm::ArrayBuilder &ab, const SVHControlCommand &data)
 
uint8_t index
Continuosly incremented counter per package. 
 
const uint8_t SVH_SET_POSITION_SETTINGS
Sets new settings for the position controller. 
 
const uint8_t SVH_GET_CURRENT_SETTINGS
Requests the active settings of the current controller. 
 
const uint8_t SVH_GET_CONTROL_FEEDBACK_ALL
Requests the positions and currents of ALL channels. 
 
const uint8_t SVH_SET_CONTROL_COMMAND_ALL
Sends the target position to ALL the channels. 
 
bool operator==(const SVHSerialPacket &other) const 
Compares two SVHSerialPackets objects. 
 
const uint8_t SVH_GET_FIRMWARE_INFO
Request the firmware info to be transmitted. 
 
const size_t cDEFAULT_PACKET_SIZE
Default packet payload size in bytes. 
 
The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.