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.
Diff: main.cpp
- Revision:
- 4:233974c864df
- Parent:
- 3:21fb6b67bb54
- Child:
- 5:5dee79116fab
--- a/main.cpp Thu Oct 19 13:41:29 2017 +0000 +++ b/main.cpp Sun Oct 22 03:07:03 2017 +0000 @@ -74,7 +74,7 @@ //1号機 uint16_t MinimumRangeR[4] = {1280,41414,15872,34304}; -uint16_t MaxmumRangeR[4] = {45312,52242,54272,11776}; +uint16_t MaxmumRangeR[4] = {45312,52242,60160,11776}; uint16_t MinimumRangeL[4] = {23040,18432,24576,58112}; uint16_t MaxmumRangeL[4] = {45312,58112,59392,30976}; @@ -101,7 +101,7 @@ //uint16_t MinimumRangeL[4] = {19000,35000,35600,21000}; //uint16_t MaxmumRangeL[4] = {49000,57000,43000,42000 }; bool ReverseL[4] = {false,true,true,true}; -bool ReverseR[4] = {true,false,true,false}; +bool ReverseR[4] = {true,false,true,true}; //AnalogIn ArmSense[4] = {AnalogIn(A6),AnalogIn(A5),AnalogIn(A4),AnalogIn(A3)}; Nunchuck ctrl(D4,D5); Serial dev(D1,D0); @@ -211,16 +211,16 @@ //if(!DEBUG)sbdbt.putc(SerialData[j][i]); } }*/ - + /* sbdbt.printf("R:"); for(int i = 4 ; i < 12 ; i+=2)print(i,SerialData[R]); sbdbt.printf("L:"); for(int i = 4 ; i < 12 ; i+=2)print(i,SerialData[L]); - + */ for(int j = 0; j < 2 ; j++){ for(int i = 0 ; i < dataNum ; i++){ //sbdbt.printf("%3d ",SerialData[j][i]); - //if(!DEBUG)sbdbt.putc(SerialData[j][i]); + if(!DEBUG)sbdbt.putc(SerialData[j][i]); } } count = 0;