Update

Dependencies:   mbed mbed-rtos X_NUCLEO_IHM02A1

Revision:
35:758191d5c6e1
Parent:
33:de144094bdd1
Child:
36:ba2e7eddbafa
--- a/ST_SOLO.cpp	Wed Apr 24 21:08:27 2019 +0000
+++ b/ST_SOLO.cpp	Sun May 05 16:18:20 2019 +0000
@@ -2,8 +2,27 @@
 
 
 int StatusSOLO=SOLO_DEFAULT;
+extern PwmOut Servo;
+extern volatile bool buttonSTART_pressed;
+extern volatile bool buttonSTART_enabled;
 
+extern volatile bool buttonAbbruch_pressed;
+extern volatile bool buttonAbbruch_enabled; 
 
+extern DigitalIn LS_1;
+extern DigitalIn LS_2;
+extern DigitalIn LS_3;
+
+extern L6470 **motors;
+
+extern DigitalIn  mybutton;
+
+extern PwmOut Cutter_1;
+extern PwmOut Cutter_2;
+extern PwmOut Spleisser_1;
+extern PwmOut Spleisser_2;
+
+int count;
 
 void EntrySOLO()
 {
@@ -18,8 +37,64 @@
         StatusSOLO=SOLO_EinlegenIN;
         }*/
         
-        printf("SOLO_MODUS\n\r");
+        /*
+        if (count < 2) {
+            Set_Servo_Bad_Fil();
+            count = count + 1;
+        } else {
+            
+        }
+        */
+        
+        /*
+        Set_Servo_Bad_Fil();
         Thread::wait(1000);
+        Set_Servo_Good_Fil();
+        */
+        /*
+        if (buttonSTART_pressed == true)
+        {
+            printf("BUTTON_START\n\r");
+            Thread::wait(1000);
+            buttonSTART_pressed = false;
+        }
+        if (buttonAbbruch_pressed == true)
+        {
+            printf("BUTTON_ABBRUCH\n\r");
+            Thread::wait(1000);
+            buttonAbbruch_pressed = false;
+        }
+        */
+        /*
+        printf("SOLO\n\r");
+        printf(" LS1 %d\n\r", LS_1.read());
+        printf(" LS2 %d\n\r", LS_2.read());
+        printf(" LS3 %d\n\r", LS_3.read());
+        */
+        /*
+        printf("SOLO\n\r");
+        motors[0]->run(StepperMotor::FWD, 500);
+        Thread::wait(1000);
+        */
+        
+        /*
+        motors[0]->run(StepperMotor::FWD, 500);
+        if(mybutton.read() == 0)
+        {
+            printf("Blitz\n\r");
+            Set_Cutter(500, 2000, 6);
+
+        }
+        
+        DisplaySendeBefehl(0x0C);
+        gotoxy(1, 1);
+        DisplaySendeString("Fuck You");
+        gotoxy(1, 3);
+        DisplaySendeString("Fuck You");
+        */
+        printf("SOLO\n\r");
+        Thread::wait(1000);
+        
        break;
        
        case SOLO_EinlegenIN: