Dynamixel SDK

dxl_get_result

The Packet communication result can be checked.

 

int dxl_get_result( );

 

Parameters

- None

 

Return Values

- 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

 

Example

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 )

{

}

 

Go back to the list