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.
Fork of ds3_si by
Diff: ds3_si.cpp
- Revision:
- 1:3fbf08dc60b6
- Parent:
- 0:4ac4c7635035
- Child:
- 2:fabf8b58b40c
diff -r 4ac4c7635035 -r 3fbf08dc60b6 ds3_si.cpp
--- 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
