Unfinished v0.7, added bearing detection
Fork of Pi_Swarm_Library_v06_alpha by
communications.h
- Committer:
- jah128
- Date:
- 2014-01-31
- Revision:
- 0:9ffe8ebd1c40
- Child:
- 1:b067a08ff54e
File content as of revision 0:9ffe8ebd1c40:
/* University of York Robot Lab Pi Swarm Library: Swarm Communications Handler * * (C) Dr James Hilder, Dept. Electronics & Computer Science, University of York * * Version 0.4 January 2014 * * Designed for use with the Pi Swarm Board (enhanced MBED sensor board) v1.2 * */ #ifndef COMMUNICATIONS_H #define COMMUNICATIONS_H void decodeMessage(char sender, char target, char id, char command, char * data, char length); void send_response(char target, char is_broadcast, char success, char id, char is_command, char function, char * data, char length); void tdma_response(); void handle_response(char sender, char is_broadcast, char success, char id, char is_command, char function, char * data, char length); void handle_command(char sender, char is_broadcast, char request_response, char id, char function, char * data, char length); void handle_request(char sender, char is_broadcast, char request_response, char id, char function); void processRadioData(char * data, char length); void errormessage(int index); #endif //COMMUNICATIONS_H