匡尚 青柳 / Mbed 2 deprecated absorber

Dependencies:   ADXL345_I2C QEI SDFileSystem mbed

Revision:
5:473edb6558fa
Parent:
4:1ec5063fb20e
Child:
6:f725ca58583f
Child:
7:0e3fac3c6a6a
--- a/main.cpp	Tue Feb 07 19:52:56 2017 +0000
+++ b/main.cpp	Thu Feb 09 07:10:47 2017 +0000
@@ -72,7 +72,7 @@
 
 
 //---ammeter setting end---
-    duty_output = 0.0;
+    duty_output = 0.6;
     duty.period(0.00005);
 //    NVIC_SetPriority(0, 1);
 
@@ -94,7 +94,7 @@
 
         while (1) {
             accelerometer.getOutput(readings);
-            if( abs((int16_t)readings[0]) > 30) {
+            if( abs((int16_t)readings[0]) > 10) {
                 myled3 = 1;
                 break;
             }
@@ -291,8 +291,8 @@
             }
             
             if(intrrupt_checker == intrrupt_cnt){
-                *duty_output = *duty_output + 0.05;
-                intrrupt_checker = intrrupt_checker + 5;
+                *duty_output = *duty_output + 0.03;
+                intrrupt_checker = intrrupt_checker + 2;
             }