2018年度計器mbed用プログラム
Dependencies: BufferedSoftSerial2 INA226_ver1 mbed-rtos mbed SDFileSystem-RTOS
Fork of keiki2017 by
Revision 43:0d7d2e703523, committed 2017-02-19
- Comitter:
- YusukeWakuta
- Date:
- Sun Feb 19 10:39:54 2017 +0000
- Branch:
- android?????
- Parent:
- 26:50272431cd1e
- Commit message:
- ??????????
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jan 25 12:24:10 2017 +0000 +++ b/main.cpp Sun Feb 19 10:39:54 2017 +0000 @@ -58,6 +58,7 @@ uint32_t sumCount = 0; MPU6050 mpu6050; Timer t; +string Command; // //AnalogIn kx_X(p17); //AnalogIn kx_Y(p16); @@ -324,7 +325,7 @@ //pc.printf("\n\r"); if(Android.writeable()){ - Android.printf("%f,%f,%f",airSpeed,roll,0); + Android.printf("%2.2f,%4.4f,%3.1f,%s,\n",airSpeed,roll,cadence.cadence,Command); } ssMutex.lock(); twe.printf("%f,%f,%f,",pitch,roll,yaw); @@ -365,8 +366,6 @@ } } - - int main(){ Thread sd_thread(&SDprintf);//必ずmain内で Thread sonar_thread(&sonarCalc);