Adam Piekarski / XBEE

Fork of XBEE by GDP 4

Revision:
0:8cdf90642ef6
Child:
1:ce4058bc0913
diff -r 000000000000 -r 8cdf90642ef6 SwitchCase.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SwitchCase.h	Tue Oct 18 03:29:46 2016 +0000
@@ -0,0 +1,40 @@
+// Add commands you wish to implement to the switch statement and #define the command with the next unused letter of the alphabet
+// Please try to minimise the number of lines you add per command i.e. for adding a steer left command simply call steerLeft() which
+// you then define in a separate file. This will make it easier to keep track of the big picture of what other people are making
+// the car do
+
+
+#define START 'A'
+#define STOP 'B'
+#define STATUSSTRING 'C'
+void XBEE::switchCase(char command)
+{
+    switch(command){
+        case START:
+        
+        
+        break;
+        case STOP:
+        
+        
+        
+        break;
+        case STATUSSTRING:
+        sendCommand("But how long is a piece of string?\n");        
+        break;
+        
+        
+        
+        
+        default:
+        sendCommand("Invalid Command Received\n");
+        break;
+        
+        
+        
+        
+        
+        }
+    
+    
+}
\ No newline at end of file