Smr disconnect

From Rsewiki
void smr_disconnect(struct smr *robot);

Smr_disconnect() terminates the connection to the smr daemon, [smrd], associated with robot. The pointer robot must have been previously returned by smr_connect.

Before closing the connection, smr_disconnect tries to stop the smr by sending a speed of zero to both motors.

Smr_disconnect frees all resources associated with the connection: the value passed for robot should not subsequently be used in any way.