2017年度の製作を開始します。

Dependencies:   BufferedSoftSerial2 SDFileSystem-RTOS mbed mbed-rtos INA226_ver1

Fork of keiki2016ver5 by albatross

Files at this revision

API Documentation at this revision

Comitter:
tsumagari
Date:
Fri Jun 30 09:52:07 2017 +0000
Branch:
SDandCadenceThread
Parent:
74:2514b70fd710
Commit message:
7/1TF?no pc.printf

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2514b70fd710 -r ba2dac12ce56 main.cpp
--- a/main.cpp	Fri Jun 30 07:06:49 2017 +0000
+++ b/main.cpp	Fri Jun 30 09:52:07 2017 +0000
@@ -321,7 +321,7 @@
         drugL = soudaDatas[26]- '0';
         inputL = atof(cErebonL);
         
-        pc.printf("erebonR:%5.5f,   drugR:%d     erebonL:%5.5f   drugL:%d",inputR,drugR,inputL,drugL);
+//        pc.printf("erebonR:%5.5f,   drugR:%d     erebonL:%5.5f   drugL:%d",inputR,drugR,inputL,drugL);
 //        pc.printf("erebonR:%s,   drugR:%d     erebonL:%s   drugL:%d",cErebonR,drugR,cErebonL,drugL);
     }//if
 //    }//while(1)
@@ -429,7 +429,7 @@
 //              soudaDatas[YOKUTAN_DATAS_NUM],soudaDatas[sizeof(int) + YOKUTAN_DATAS_NUM + 2],(int)soudaDatas[SOUDA_DATAS_NUM - sizeof(int) - 3],soudaDatas[SOUDA_DATAS_NUM-1],
 //              pitch,roll,yaw,
 //              airSpeed,sonarDist,cadenceResult);
-    pc.printf("cadence:%5.5f\n\r",cadenceResult);
+//    pc.printf("cadence:%5.5f\n\r",cadenceResult);
 
 //    for(int i = 0; i < strlen(cadence_twe.myBuff); i++){
 //        ////pc.printf("%c",*(cadence_twe.myBuff+i));
@@ -474,14 +474,14 @@
     Thread SD_thread(&SDprintf);
 //    Thread soudaSerial_thread(&DataReceiveFromSouda);
     init();
-    int VCcounter = 0;
+//    int VCcounter = 0;
     while(1) {
-        if(VCcounter%20 == 0 ) {
-            if( VCmonitor.getVoltage(&V) == 0) {
-                pc.printf("e:%f\n",V);
-            }
-        }
-        VCcounter++;
+//        if(VCcounter%20 == 0 ) {
+//            if( VCmonitor.getVoltage(&V) == 0) {
+//                pc.printf("e:%f\n",V);
+//            }
+//        }
+//        VCcounter++;
 
 //        updateCadence(V,mgPin.read() * 3.3,mgPin2.read() * 3.3,isFirstCadenceFlag);
         //pc.printf("test\n\r");