Main Program

Dependencies:   mbed AQM1602 HMC6352 PID

Revision:
28:8ac6c3c1e643
Parent:
27:769cb5a7ea37
Child:
29:b413b0bb07a1
--- a/main_processing/setup_command_active/command.cpp	Sun Jan 31 15:46:19 2016 +0000
+++ b/main_processing/setup_command_active/command.cpp	Mon Feb 01 02:05:44 2016 +0000
@@ -88,6 +88,7 @@
     char buf[0x10];
     sprintf(buf, "CatPot");
     Lcd.locate(0, 1);Lcd.print(buf);
+    data.strategy=0;
     ActiveLoop();
     return 1;
 }
@@ -139,8 +140,22 @@
     data.FrontDeg=0;
     return 1;
 }
-uint8_t LoopFunction8(uint8_t x){ return 0; }
-uint8_t LoopFunction9(uint8_t x){ return 0; }
+uint8_t LoopFunction8(uint8_t x){
+    char buf[0x10];
+    if(x==1) data.s_pow = 15;
+    if(x==2) data.s_pow = 25;
+    if(x==3) data.s_pow = 35;
+    sprintf(buf, "TuningS_power");
+    Lcd.locate(0, 1);Lcd.print(buf);return 0;
+}
+uint8_t LoopFunction9(uint8_t x){
+    char buf[0x10];
+    if(x==1) data.l_pow = 15;
+    if(x==2) data.l_pow = 25;
+    if(x==3) data.l_pow = 35;
+    sprintf(buf, "TuningL_power");
+    Lcd.locate(0, 1);Lcd.print(buf);return 0;
+}
 uint8_t LoopFunctionA(uint8_t x){
     char buf[0x10];
     sprintf(buf, "SeeYouAgain!");
@@ -184,4 +199,10 @@
     sprintf(buf, "Make a strategy");
     Lcd.locate(0, 1);Lcd.print(buf);return 0;
 }
-uint8_t LoopFunctionF(uint8_t x){ return 0; }
+uint8_t LoopFunctionF(uint8_t x){
+    char buf[0x10];
+    sprintf(buf, "CatPotForDebug");
+    Lcd.locate(0, 1);Lcd.print(buf);
+    ActiveLoop();
+    return 1;
+}