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: QEI2 chair_BNO055 PID Watchdog VL53L1X_Filter ros_lib_kinetic
Diff: imu.cpp
- Revision:
- 5:e0ccaab3959a
- Parent:
- 4:29a27953fe70
- Child:
- 6:0cd57bdd8fbc
diff -r 29a27953fe70 -r e0ccaab3959a imu.cpp
--- a/imu.cpp Tue Jul 17 02:29:26 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-#include "imu.h"
-
-Imu::Imu(){
- imu = new BNO055(SDA, SCL);
-}
-
-Imu::Imu(PinName sda_pin, PinName scl_pin){
- imu = new BNO055(sda_pin, scl_pin);
-}
-void Imu::setup(){
- imu.reset();
- pc.printf("Bosch Sensortec BNO055 test program on \r\n");
- while (imu.check() == 0) {
- pc.printf("Bosch BNO055 is NOT available!!\r\n");
- wait(.5);
- }
- pc.printf("Bosch Sensortec BNO055 available \r\n");
- imu.set_accel_units(MPERSPERS);
- imu.setmode(OPERATION_MODE_AMG);
- imu.get_calib();
- imu.write_calibration_data();
- imu.set_angle_units(DEGREES);
-}
\ No newline at end of file