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: mbed Servo MC33926 encoder
Fork of FlexV1 by
Diff: main.cpp
- Revision:
- 7:fe796ee2f59f
- Parent:
- 6:029b4b8111ef
- Child:
- 8:3c174bef1dbd
diff -r 029b4b8111ef -r fe796ee2f59f main.cpp
--- a/main.cpp Fri Jan 10 17:01:28 2014 +0000
+++ b/main.cpp Thu Jan 07 13:46:32 2021 +0000
@@ -94,7 +94,7 @@
// (in degrees) calculated from the quaternions coming from the FIFO.
// Note that Euler angles suffer from gimbal lock (for more info, see
// http://en.wikipedia.org/wiki/Gimbal_lock)
-//#define OUTPUT_READABLE_EULER
+#define OUTPUT_READABLE_EULER
// uncomment "OUTPUT_READABLE_YAWPITCHROLL" if you want to see the yaw/
// pitch/roll angles (in degrees) calculated from the quaternions coming
@@ -118,7 +118,7 @@
// uncomment "OUTPUT_TEAPOT" if you want output that matches the
// format used for the InvenSense teapot demo
-#define OUTPUT_TEAPOT
+//#define OUTPUT_TEAPOT
@@ -161,8 +161,8 @@
{
//Pin Defines for I2C Bus
-#define D_SDA p9
-#define D_SCL p10
+#define D_SDA D4
+#define D_SCL D5
//#define D_SDA p28
//#define D_SCL p27
I2C i2c(D_SDA, D_SCL);
