With pid left, right, and foward

Dependencies:   BNO055

Dependents:   wheelchaircontrol wheelchaircontrolRosCom wheelchaircontrol wheelchaircontrol2 ... more

Fork of chair_BNO055 by ryan lin

Files at this revision

API Documentation at this revision

Comitter:
jvfausto
Date:
Thu Jun 27 16:32:06 2019 +0000
Parent:
5:a05d4bfb3060
Commit message:
a

Changed in this revision

chair_BNO055.cpp Show annotated file Show diff for this revision Revisions of this file
chair_BNO055.h Show annotated file Show diff for this revision Revisions of this file
diff -r a05d4bfb3060 -r ce8aa8208590 chair_BNO055.cpp
--- a/chair_BNO055.cpp	Fri Apr 19 23:03:48 2019 +0000
+++ b/chair_BNO055.cpp	Thu Jun 27 16:32:06 2019 +0000
@@ -24,10 +24,10 @@
 {
     imu->reset();
     usb->printf("Bosch Sensortec BNO055 test program on \r\n");//" __DATE__ "/" __TIME__ "\r\n");
-    while (imu->check() == 0) {
+    /*while (imu->check() == 0) {
         usb->printf("Bosch BNO055 is NOT available!!\r\n");
         wait(.5);
-    }
+    }*/
     usb->printf("BNO055 found\r\n\r\n");
     usb->printf("Chip          ID: %0z\r\n",imu->ID.id);
     usb->printf("Accelerometer ID: %0z\r\n",imu->ID.accel);
diff -r a05d4bfb3060 -r ce8aa8208590 chair_BNO055.h
--- a/chair_BNO055.h	Fri Apr 19 23:03:48 2019 +0000
+++ b/chair_BNO055.h	Thu Jun 27 16:32:06 2019 +0000
@@ -9,8 +9,8 @@
 #define PI 3.141593
 /*#define SDA D14
 #define SCL D15*/
-#define SDA D14
-#define SCL D15
+#define SDA PB_9
+#define SCL PB_8
 #define SAMPLEFREQ 50
 #define CAL_TIME 3