Aggregation-Flocking_2
Dependencies: Pi_Swarm_Library_v06_alpha mbed
Fork of Pi_Swarm_Blank by
main.h
- Committer:
- edgarbuchanan
- Date:
- 2014-08-13
- Revision:
- 6:a13d06616ae1
- Parent:
- 5:66e1a4c974dd
File content as of revision 6:a13d06616ae1:
/******************************************************************************************* * * University of York Robot Lab Pi Swarm Robot Library * * (C) Dr James Hilder, Dept. Electronics & Computer Science, University of York * * Version 0.6 February 2014 * * Designed for use with the Pi Swarm Board (enhanced MBED sensor board) v1.2 * ******************************************************************************************/ #ifndef MAIN_H #define MAIN_H #include "piswarm.h" void handleUserRFCommand(char * data, char length); void handleUserRFCommand(char sender, char broadcast_message, char request_response, char id, char is_command, char function, char * data, char length); void handleUserRFResponse(char sender, char broadcast_message, char request_response, char id, char is_command, char function, char * data, char length); void processRawRFData(char * rstring, char cCount); void switch_pressed ( void ); //This function collects all outer IR sensors information and store them in an array. void get_sensors_values( void ); //Detect strongest source of IR and face towards it. Cosntant defines rate of spin. void attraction( float direction_constant ); //Do flocking behaviour void flocking( void ); //Do aggregation behaviour void aggregation( void ); #endif //MAIN_H