Example/test programs for my BNO080 driver.
BNO080 Driver Examples
These examples show how to use some of the functionality on my BNO080 driver. To get started with MBed CLI:
Build Instructions
$ hg clone https://MultipleMonomials@os.mbed.com/users/MultipleMonomials/code/BNO080-Examples/ $ cd BNO080-Examples $ mbed deploy $ mbed compile
BNOTestSuite.h
- Committer:
- Jamie Smith
- Date:
- 2019-06-14
- Revision:
- 1:14c135ea7134
- Parent:
- 0:82ee5f7adbb0
- Child:
- 4:85b98cc04a0a
File content as of revision 1:14c135ea7134:
/* USC RPL HAMSTER v2.3 Contributors: Lauren Potterat */ #pragma once #include "BNO080.h" #include "mbed.h" Serial pc(USBTX, USBRX); // These pin assignments are specific to my dev setup -- you'll need to change them BNO080 imu(&pc, p28, p27, p16, p30, 0x4a, 100000); class BNOTestSuite{ public: void test_printInfo(); void test_readRotationVector(); void test_readRotationAcceleration(); void test_tapDetector(); void test_gameRotationVector(); void test_tare(); void test_magCalibration(); void test_stabilityClassifier(); void test_metadata(); void test_orientation(); void test_permanentOrientation(); void test_disable(); };