Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSoftSerial2 SDFileSystem-RTOS mbed mbed-rtos INA226_ver1
Fork of keiki2016ver5 by
Diff: main.cpp
- Branch:
- android?????
- Revision:
- 43:0d7d2e703523
- Parent:
- 26:50272431cd1e
--- 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);