This is the first rev of HW3 for IDD

Dependencies:   MMA8451Q USBDevice mbed nRF24L01P

Files at this revision

API Documentation at this revision

Comitter:
shunshou
Date:
Mon Sep 29 17:22:35 2014 +0000
Parent:
3:99ed0483f868
Commit message:
changed pwm settings

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 99ed0483f868 -r 7012a2af25f6 main.cpp
--- a/main.cpp	Mon Sep 29 17:14:42 2014 +0000
+++ b/main.cpp	Mon Sep 29 17:22:35 2014 +0000
@@ -281,7 +281,7 @@
             if (attackflag == true){
                 if (motorCycle < 250){
                     motorCycle++;
-                    motor.write(0.80f);                         // 40% duty cycle, relative to period
+                    motor.write(0.40f);                         // 40% duty cycle, relative to period
 
                 }
                 else {