verslag

Dependencies:   Encoder HIDScope MODSERIAL- mbed-dsp mbed

Fork of PROJECT_FINAL by Aukie Hooglugt

Revision:
26:8d91c4c54bb6
Parent:
25:1ec0da9b26a5
Child:
27:e33c352d6bb2
--- a/PROJECT_main.cpp	Tue Nov 04 11:28:21 2014 +0000
+++ b/PROJECT_main.cpp	Tue Nov 04 11:30:05 2014 +0000
@@ -98,7 +98,7 @@
 float derivative = 0;
 float batjeset = 0; //een if statement wordt "true" wanneer batje voor een bepaalde tijd de juiste hoek heeft behouden
 float balhit = 0;  //balhit wordt 1 wanneer arm een bepaalde hoek heeft afgelegd
-float kalibratie = 1; //NOG AAN TE PASSEN NAAR 0 
+float kalibratie = 0;  
 float controlerror = 0;
 float previouserror = 0;
 float pwm = 0;
@@ -363,9 +363,6 @@
 
 directionchoice:
     log_timer.attach(looper, TSAMP_EMG);
-    direction = 1;
-    force = 1;
-    goto motorcontrol;
 
     while(1) { //Loop keuze DIRECTION
         for(int i=1; i<4; i++) {