FINAL PROJECT isn't it

Fork of ELEC351 by Plymouth ELEC351 Group T

Revision:
56:bc5345bc6650
Parent:
55:e0e684531825
Child:
57:aba1296e51b1
diff -r e0e684531825 -r bc5345bc6650 SERIAL_COMMANDS.cpp
--- a/SERIAL_COMMANDS.cpp	Thu May 24 13:31:20 2018 +0000
+++ b/SERIAL_COMMANDS.cpp	Mon Jul 16 10:51:47 2018 +0000
@@ -33,7 +33,7 @@
         stringstream Number(LoggingNumber);                                                             //Convert string to stringstream
         Number >> NumberToLogging;                                                                      //Convert stringstream to integer
         if      (NumberToLogging == 0){pc.printf("NOT LOGGING\n");}                                     //Not Logging
-        else if (NumberToLogging == 1){pc.printf("LOGGING LCD\n");}                                     //Logging LCD
+        else if (NumberToLogging == 1){pc.printf("LOGGING Serial\n");}                                     //Logging LCD
         else if (NumberToLogging == 2){pc.printf("LOGGING NETWORKING\n");}                              //Logging Networking
         else if (NumberToLogging == 3){pc.printf("LOGGING SAMPLING\n");}                                //Logging Sampling
         else if (NumberToLogging == 4){pc.printf("LOGGING SERIAL COMMANDS\n");}                         //Logging serial commands
@@ -78,6 +78,15 @@
         }
        
     }
+    //MOVE
+    else if(input[0] == 'M' & input[1] == 'O' & input[2] == 'V' & input[3] == 'E')
+    { 
+    pc.printf("Enter the Move\n");                    //Request command in the terminal
+    cin.getline(input,sizeof(input),'\r');;
+    if(input[0] == 'C' & input[1] == 'L')
+    {
+        pc.printf("Test Successful\n");  
+    }
     //HELP
     else if(input[0] == 'H' & input[1] == 'E' & input[2] == 'L' & input[3] == 'P')
     { 
@@ -88,4 +97,5 @@
     {
         pc.printf("Please enter an acceptable command\n");
     }
+}
 }
\ No newline at end of file