UDP comms to ROV
Diff: design.h
- Revision:
- 0:4a75d653c18c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/design.h Fri Jan 13 20:24:19 2012 +0000 @@ -0,0 +1,23 @@ +/**************************************************************** +Design file for the communication aspects of the ROV + +Format of the command : +cmd, data_byte1, data_byte2, ...... , data_byteN + +There is a maximum length for each data packet and I will assume, +initially, that each data packet is the same length, makes things +easier :) + +Each end will need a TCP socket server, so the data can be sent +randomly, as and when needed + +class RovComms : + void Transmit(char *buf); + + int Rx(char *buf); + + int Init(int speed); + + void SetCallback( void *fn); + +*****************************************************************/ \ No newline at end of file