
Robot using IMU and IR sensor data to drive autonomously and create a map
Dependencies: mbed mbed-rtos LSM9DS1_Library_cal Motor
Revision 4:18e9f16cc53c, committed 2016-04-10
- Comitter:
- wschon
- Date:
- Sun Apr 10 22:03:16 2016 +0000
- Parent:
- 3:70f624c5fe26
- Child:
- 5:665b9dc3d22f
- Child:
- 6:a51f4ac6f42b
- Commit message:
- making sure it's fully updated
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Apr 10 22:01:21 2016 +0000 +++ b/main.cpp Sun Apr 10 22:03:16 2016 +0000 @@ -57,6 +57,7 @@ xmag = IMU.calcMag(IMU.mx); ymag = IMU.calcMag(IMU.my); zmag = IMU.calcMag(IMU.mz); + printAttitude(IMU.calcAccel(IMU.ax), IMU.calcAccel(IMU.ay), IMU.calcAccel(IMU.az), IMU.calcMag(IMU.mx), IMU.calcMag(IMU.my), IMU.calcMag(IMU.mz)); Thread::wait(500); //Wait 1/2 second } }