Fixed library from MBED update 145.

Dependents:   Bicycl_Computer_NUCLEO-F411RE

Fork of BNO055_fusion by Kenji Arai

Files at this revision

API Documentation at this revision

Comitter:
trevieze
Date:
Fri Aug 04 19:48:14 2017 +0000
Parent:
4:9e6fead1e93e
Commit message:
Must pass I2C because of 145

Changed in this revision

BNO055.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9e6fead1e93e -r d77acb6b3980 BNO055.cpp
--- a/BNO055.cpp	Thu Apr 16 10:47:40 2015 +0000
+++ b/BNO055.cpp	Fri Aug 04 19:48:14 2017 +0000
@@ -19,13 +19,13 @@
 #include "mbed.h"
 #include "BNO055.h"
 
-BNO055::BNO055 (PinName p_sda, PinName p_scl, PinName p_reset, uint8_t addr, uint8_t mode):
-    _i2c(p_sda, p_scl), _res(p_reset)
-{
-    chip_addr = addr;
-    chip_mode = mode;
-    initialize ();
-}
+//BNO055::BNO055 (PinName p_sda, PinName p_scl, PinName p_reset, uint8_t addr, uint8_t mode):
+//   _i2c(p_sda, p_scl), _res(p_reset)
+//{
+//    chip_addr = addr;
+//    chip_mode = mode;
+//    initialize ();
+//}
 
 BNO055::BNO055 (PinName p_sda, PinName p_scl, PinName p_reset) :
     _i2c(p_sda, p_scl), _res(p_reset)
@@ -35,21 +35,21 @@
     initialize ();
 }
 
-BNO055::BNO055 (I2C& p_i2c, PinName p_reset, uint8_t addr, uint8_t mode) :
-    _i2c(p_i2c), _res(p_reset)
-{
-    chip_addr = addr;
-    chip_mode = mode;
-    initialize ();
-}
+//BNO055::BNO055 (I2C& p_i2c, PinName p_reset, uint8_t addr, uint8_t mode) :
+//   _i2c(p_i2c), _res(p_reset)
+//{
+//  chip_addr = addr;
+//  chip_mode = mode;
+//  initialize ();
+//}
 
-BNO055::BNO055 (I2C& p_i2c, PinName p_reset) :
-    _i2c(p_i2c), _res(p_reset)
-{
-    chip_addr = BNO055_G_CHIP_ADDR;
-    chip_mode = MODE_NDOF;
-    initialize ();
-}
+//BNO055::BNO055 (I2C& p_i2c, PinName p_reset) :
+//    _i2c(p_i2c), _res(p_reset)
+//{
+//    chip_addr = BNO055_G_CHIP_ADDR;
+//    chip_mode = MODE_NDOF;
+//    initialize ();
+//}
 
 /////////////// Read data & normalize /////////////////////
 void BNO055::get_Euler_Angles(BNO055_EULER_TypeDef *el)