Aggregation-Flocking_2

Dependencies:   Pi_Swarm_Library_v06_alpha mbed

Fork of Pi_Swarm_Blank by piswarm

Revision:
4:823174be9a6b
Parent:
3:1aa1de26966a
Child:
5:66e1a4c974dd
--- a/main.cpp	Mon Feb 03 13:01:30 2014 +0000
+++ b/main.cpp	Tue Feb 18 17:18:43 2014 +0000
@@ -2,9 +2,13 @@
  *
  * University of York Robot Lab Pi Swarm Robot Library
  *
+ * "Blank" Program
+ *
+ * Use this file as the template to produce custom controllers
+ *
  * (C) Dr James Hilder, Dept. Electronics & Computer Science, University of York
  * 
- * Version 0.5  February 2014
+ * Version 0.6  February 2014
  *
  * Designed for use with the Pi Swarm Board (enhanced MBED sensor board) v1.2
  *
@@ -40,13 +44,12 @@
 
 /***************************************************************************************************************************************
  *
- * Beyond this point, the outline of several optional functions is given
+ * Beyond this point, empty code blocks for optional functions is given
  *
- * This may be left blank but should not be deleted
+ * These may be left blank if not used, but should not be deleted 
  *
  **************************************************************************************************************************************/
  
-
 // Communications
 
 // If using the communication stack (USE_COMMUNICATION_STACK = 1), functionality for handling user RF responses should be added to the following functions
@@ -62,7 +65,8 @@
     // function = The function identifier.  Range 0 to 15
     // * data = Array containing extra data bytes
     // length = Length of extra data bytes held (range 0 to 57)
-    
+
+    //Do something...
 }    
 
 void handleUserRFResponse(char sender, char broadcast_message, char success, char id, char is_command, char function, char * data, char length){
@@ -75,13 +79,16 @@
     // function = The function identifier.  Range 0 to 15
     // * data = Array containing extra data bytes
     // length = Length of extra data bytes held (range 0 to 57)
-  
+
+    //Do something...  
 }    
 
 void processRawRFData(char * rstring, char cCount){
     // A raw RF packet has been received: write the code here to process it
     // rstring = The received packet
     // cCount = Packet length
+    
+    //Do something...
 }
 
 void switch_pressed() {