Added BNO080Wheelchair.h

Dependents:   BNO080_program wheelchaircontrol8 Version1-9 BNO080_program

Revision:
11:dbe6d8d0ceb1
Parent:
3:197ad972fb7c
--- a/BNO080.h	Tue Jul 30 18:33:45 2019 +0000
+++ b/BNO080.h	Fri Aug 02 23:34:30 2019 +0000
@@ -24,6 +24,7 @@
 #include <mbed.h>
 #include <quaternion.h>
 
+
 #include "BNO080Constants.h"
 
 // useful define when working with orientation quaternions
@@ -44,8 +45,10 @@
 	/**
 	 * I2C port object.  Provides physical layer communications with the chip.
 	 */
+	 
 	I2C _i2cPort;
-
+	//SoftI2C _i2cPort;
+	
 	/// user defined port speed
 	int  _i2cPortSpeed;
 
@@ -74,6 +77,9 @@
 	/// rarely get over a hundred bytes unless you have a million sensor reports enabled.
 	/// The only long packets we actually care about are batched sensor data packets.
 	uint8_t shtpData[STORED_PACKET_SIZE];
+	
+	#define READ_BUFFER_SIZE 512
+	uint8_t readBuffer[READ_BUFFER_SIZE];
 
 	/// Length of packet that was received into buffer.  Does NOT include header bytes.
 	uint16_t packetLength;