卒研
Fork of ds3_si by
Diff: ds3_si.cpp
- Revision:
- 1:3fbf08dc60b6
- Parent:
- 0:4ac4c7635035
- Child:
- 2:fabf8b58b40c
--- a/ds3_si.cpp Thu Sep 07 02:22:00 2017 +0000 +++ b/ds3_si.cpp Tue Sep 12 07:27:30 2017 +0000 @@ -63,7 +63,7 @@ int x = analogstate(order * 2 + 1); int y = analogstate(order * 2 + 2); if(x || y) return atan2(double(y), double(x)); - else return 10.0;//NULL + else return NONE_angle; } void ds3_si::usb_debug() @@ -71,5 +71,7 @@ for(short i = 0; i < 8; i++) pc.printf("%4d", in[i]); pc.printf(" %4.1lf %4.1lf", getangle(L) * 180 / PI, getangle(R) * 180 / PI); + if(buttonstate(square)) pc.printf(" 1"); + else pc.printf(" 0"); pc.printf("\n"); } \ No newline at end of file