ROBOTIS e-Manual v1.13.01
| Dynamixel SDK |
The Packet communication result can be checked.
|
int dxl_get_result( ); |
- None
- The value of communication result.
|
Value |
Meaning |
|
COMM_TXSUCCESS |
Success of Instruction packet Transmission |
|
COMM_RXSUCCESS |
Success of Status Packet Reception |
|
COMM_TXFAIL |
Failure of Instruction Packet Transmission by Error |
|
COMM_RXFAIL |
Failure of Status Packet Reception by Error |
|
COMM_TXERROR |
Problems in Instruction packet |
|
COMM_RXWAITING |
Status packet is not arrived yet. |
|
COMM_RXTIMEOUT |
Relevant Dynamixel is not responding. |
|
COMM_RXCORRUPT |
Problems in Status packet |
|
result = dxl_get_result( ); if( result == COMM_TXSUCCESS ) { } else if( result == COMM_RXSUCCESS ) { } else if( result == COMM_TXFAIL ) { } else if( result == COMM_RXFAIL) { } else if( result == COMM_TXERROR ) { } else if( result == COMM_RXWAITING ) { } |