Smr disconnect

From Rsewiki
Revision as of 14:22, 29 September 2008 by Lvm (talk | contribs) (New page: 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 re...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.