piswarm / Mbed 2 deprecated Pi_Swarm_Blank

Dependencies:   Pi_Swarm_Library_v06_alpha mbed

Fork of Pi_Swarm_Blank by Pi Swarm Robot

Files at this revision

API Documentation at this revision

Comitter:
jah128
Date:
Tue Feb 18 17:18:43 2014 +0000
Parent:
3:1aa1de26966a
Child:
5:66e1a4c974dd
Commit message:
Blank program for API 0.6 (unfinished)

Changed in this revision

Pi_Swarm_Library.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
main.h Show annotated file Show diff for this revision Revisions of this file
--- a/Pi_Swarm_Library.lib	Mon Feb 03 13:01:30 2014 +0000
+++ b/Pi_Swarm_Library.lib	Tue Feb 18 17:18:43 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/jah128/code/Pi_Swarm_Library/#08dec9c7d3f6
+http://mbed.org/teams/piswarm/code/Pi_Swarm_Library_v06_alpha/#7a4fc1d7e484
--- 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() {
--- a/main.h	Mon Feb 03 13:01:30 2014 +0000
+++ b/main.h	Tue Feb 18 17:18:43 2014 +0000
@@ -4,7 +4,7 @@
  *
  * (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
  *