filewriting program for second mbed

Dependencies:   QEI mbed

Revision:
1:fcfef1d9aa3d
Parent:
0:62a5c4d985cc
Child:
2:4355e6305710
--- a/main.cpp	Sun Dec 01 22:55:11 2013 +0000
+++ b/main.cpp	Sun Dec 01 22:57:09 2013 +0000
@@ -24,7 +24,7 @@
         float e1 = encoder1.getPulses()*2*3.14/1200.0;
         float e2 = encoder2.getPulses()*2*3.14/1200.0;
         
-        fprintf("enc pos: %f, %f  F: %f, %f  Favg: %f  CS: %f, %f", e1, e2, f1, f2, (f1+f2)/2.0, c1, c2);
+        fprintf(fp, "enc pos: %f, %f  F: %f, %f  Favg: %f  CS: %f, %f", e1, e2, f1, f2, (f1+f2)/2.0, c1, c2);
     }
     fclose(fp);
 }