start the wrapper burrito
Diff: BNO080.h
- Revision:
- 2:2269b723d16a
- Parent:
- 1:aac28ffd63ed
- Child:
- 3:197ad972fb7c
diff -r aac28ffd63ed -r 2269b723d16a BNO080.h --- a/BNO080.h Sat Dec 29 03:31:00 2018 -0800 +++ b/BNO080.h Sat Dec 29 04:09:34 2018 -0800 @@ -79,10 +79,10 @@ uint16_t packetLength; /// Current sequence number for each channel, incremented after transmission. - uint8_t sequenceNumber[6] = {0, 0, 0, 0, 0, 0}; + uint8_t sequenceNumber[6]; /// Commands have a seqNum as well. These are inside command packet, the header uses its own seqNum per channel - uint8_t commandSequenceNumber = 0; + uint8_t commandSequenceNumber; // frs metadata @@ -97,7 +97,7 @@ #define METADATA_BUFFER_LEN 10 /// Buffer for current metadata record. - uint32_t metadataRecord[METADATA_BUFFER_LEN] = {}; + uint32_t metadataRecord[METADATA_BUFFER_LEN]; // data storage //----------------------------------------------------------------------------------------------------------------- @@ -106,10 +106,10 @@ #define STATUS_ARRAY_LEN MAX_SENSOR_REPORTID + 1 /// stores status of each sensor, indexed by report ID - uint8_t reportStatus[STATUS_ARRAY_LEN] = {}; + uint8_t reportStatus[STATUS_ARRAY_LEN]; /// stores whether a sensor has been updated since the last call to hasNewData() - bool reportHasBeenUpdated[STATUS_ARRAY_LEN] = {}; + bool reportHasBeenUpdated[STATUS_ARRAY_LEN]; public: @@ -117,7 +117,7 @@ //----------------------------------------------------------------------------------------------------------------- /// List of all sensor reports that the IMU supports. - enum class Report : uint8_t + enum Report { /** * Total acceleration of the IMU in world space. @@ -316,7 +316,7 @@ * * See BNO datasheet section 2.4.1 and SH-2 section 6.5.31.2 for details. */ - enum class Stability : uint8_t + enum Stability { /// Unknown stability type. UNKNOWN = 0, @@ -339,13 +339,13 @@ * Readout from the stability classifier. * Current stability status of the IMU. */ - Stability stability = Stability::UNKNOWN; + Stability stability; /** * Readout from the Step Detector report. This flag is set to true whenever a step is detected, and you should * manually clear it when you have processed the step. */ - bool stepDetected = false; + bool stepDetected; /** * Readout from the Step Counter report. This count increases as the user takes steps, but can also decrease @@ -357,19 +357,19 @@ * Readout from the Significant Motion Detector report. This flag is set to true whenever significant motion is detected, and you should * manually clear it when you have processed the event. */ - bool significantMotionDetected = false; + bool significantMotionDetected; /** * Readout from the Shake Detector report. This flag is set to true whenever shaking is detected, and you should * manually clear it when you have processed the event. */ - bool shakeDetected = false; + bool shakeDetected; // @{ /// The axis/axes that shaking was detected in in the latest shaking report. - bool xAxisShake = false; - bool yAxisShake = false; - bool zAxisShake = false; + bool xAxisShake; + bool yAxisShake; + bool zAxisShake; // @} // Management functions