Iterative Learning Control

Dependencies:   btbee m3pi_ng mbed

Revision:
3:b0dcacecad2b
Parent:
2:e8a983e2852b
Child:
4:8918484e8125
--- a/main.cpp	Wed Jun 10 12:23:01 2015 +0000
+++ b/main.cpp	Wed Jun 10 12:27:49 2015 +0000
@@ -24,9 +24,6 @@
 
 int main() {
     
-    
-while(1) {
-    
     btbee.reset();
     m3pi_pb.mode(PullUp);
     
@@ -100,6 +97,7 @@
     vector < double > evalues;
     double u;
     double e;
+    int LoopCounter = 0;
     
     
     
@@ -234,9 +232,10 @@
         exit(1);
         }
 
+    LoopCounter++;
 
     }
     
 }
 
-}
+