Fertig

Dependencies:   mbed

Fork of RT2_P3_students by RT2_P3_students

Revision:
6:2cc56521aa16
Parent:
5:d79c437626e7
Child:
7:72982ede2ff6
--- a/main.cpp	Mon Apr 09 09:26:58 2018 +0000
+++ b/main.cpp	Tue Apr 10 11:44:36 2018 +0000
@@ -46,7 +46,7 @@
 float w_soll = 10.0f;                   // desired velocity
 float Ts = 0.002f;                      // sample time of main loops
 int k = 0;
-LinearCharacteristics i2u(0.8f,-2.0f);
+
 //------------------------------------------
 // ... here define variables like gains etc.
 //------------------------------------------
@@ -84,8 +84,7 @@
 void updateControllers(void){
     short counts = counter1;            // get counts from Encoder
     float vel = diff(counts);           // motor velocity 
-    out.write(i2u(0.0f)/3.3f);
-    // ... your code 
+     // ... your code 
     if(++k >= 249){
         k = 0;
         pc.printf("Pulse: %d Velocity: %3.2f\r\n",counts,vel);