Eindversie. LU: 07-11-13.

Dependencies:   MODSERIAL mbed Encoder

Files at this revision

API Documentation at this revision

Comitter:
Socrates
Date:
Wed Oct 16 08:54:31 2013 +0000
Parent:
2:3dab90d3aac2
Child:
4:513c33bba011
Commit message:
Voor opschonen 2;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Oct 16 08:53:57 2013 +0000
+++ b/main.cpp	Wed Oct 16 08:54:31 2013 +0000
@@ -55,7 +55,7 @@
         //Met bovenstaande zijn de metingen gedaan.
         //Dat is
         //z=(z1/denl2-(numl1/denl2)*y1+(numl2/denl2)*y)
-        z=y*numl1+y1*numl2-z1*denl2;
+        z=yabs*numl1+yabs1*numl2-z1*denl2;
         
         pc.printf("%f\n\r",z);
         x1=x;