quad test

Dependencies:   mbed

Fork of Quad Rotor Control by Ryan Smith

Files at this revision

API Documentation at this revision

Comitter:
khaledelmadawi
Date:
Mon Feb 02 15:47:52 2015 +0000
Parent:
0:fe6280c7a52f
Commit message:
test;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r fe6280c7a52f -r 2143bcfd2ff1 main.cpp
--- a/main.cpp	Fri Aug 17 14:18:42 2012 +0000
+++ b/main.cpp	Mon Feb 02 15:47:52 2015 +0000
@@ -52,6 +52,9 @@
             case 'm':
                 val = 0.0018;
                 break;
+             case 'l':
+                val=0.5;
+                break;
         }
         }
            
@@ -60,7 +63,7 @@
         BLDCM3.pulsewidth(val);
         BLDCM4.pulsewidth(val);
         wait(0.25);
-        pc.printf("Volts (%f) Pulsewidth (%f) RPM (%f) \n",(((val*1000)*12)),(val),(((val*1000)*1200)));
+        pc.printf("Volts (%f) Pulsewidth (%f) RPM (%f) \r\n",(((val*1000)*12)),(val),(((val*1000)*1200)));
 
     }
 }
\ No newline at end of file