![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Example/test programs for my BNO080 driver.
BNOTestSuite.h@2:77a635b52bd1, 2019-08-25 (annotated)
- Committer:
- Edrum_x
- Date:
- Sun Aug 25 23:31:32 2019 +0000
- Revision:
- 2:77a635b52bd1
- Parent:
- 1:14c135ea7134
BNO-080 for ballbot
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jamie Smith |
0:82ee5f7adbb0 | 1 | /* |
Jamie Smith |
0:82ee5f7adbb0 | 2 | USC RPL HAMSTER v2.3 |
Jamie Smith |
0:82ee5f7adbb0 | 3 | Contributors: Lauren Potterat |
Jamie Smith |
0:82ee5f7adbb0 | 4 | */ |
Jamie Smith |
0:82ee5f7adbb0 | 5 | |
Jamie Smith |
0:82ee5f7adbb0 | 6 | #pragma once |
Jamie Smith |
0:82ee5f7adbb0 | 7 | |
Jamie Smith |
0:82ee5f7adbb0 | 8 | #include "BNO080.h" |
Jamie Smith |
0:82ee5f7adbb0 | 9 | #include "mbed.h" |
Jamie Smith |
0:82ee5f7adbb0 | 10 | |
Jamie Smith |
0:82ee5f7adbb0 | 11 | Serial pc(USBTX, USBRX); |
Jamie Smith |
0:82ee5f7adbb0 | 12 | |
Jamie Smith |
0:82ee5f7adbb0 | 13 | // These pin assignments are specific to my dev setup -- you'll need to change them |
Jamie Smith |
0:82ee5f7adbb0 | 14 | BNO080 imu(&pc, p28, p27, p16, p30, 0x4a, 100000); |
Jamie Smith |
0:82ee5f7adbb0 | 15 | |
Jamie Smith |
0:82ee5f7adbb0 | 16 | class BNOTestSuite{ |
Jamie Smith |
0:82ee5f7adbb0 | 17 | public: |
Jamie Smith |
0:82ee5f7adbb0 | 18 | |
Jamie Smith |
0:82ee5f7adbb0 | 19 | void test_printInfo(); |
Jamie Smith |
0:82ee5f7adbb0 | 20 | |
Jamie Smith |
0:82ee5f7adbb0 | 21 | void test_readRotationVector(); |
Jamie Smith |
0:82ee5f7adbb0 | 22 | |
Jamie Smith |
0:82ee5f7adbb0 | 23 | void test_readRotationAcceleration(); |
Jamie Smith |
0:82ee5f7adbb0 | 24 | |
Jamie Smith |
0:82ee5f7adbb0 | 25 | void test_tapDetector(); |
Jamie Smith |
0:82ee5f7adbb0 | 26 | |
Jamie Smith |
0:82ee5f7adbb0 | 27 | void test_gameRotationVector(); |
Jamie Smith |
0:82ee5f7adbb0 | 28 | |
Jamie Smith |
0:82ee5f7adbb0 | 29 | void test_tare(); |
Jamie Smith |
0:82ee5f7adbb0 | 30 | |
Jamie Smith |
0:82ee5f7adbb0 | 31 | void test_magCalibration(); |
Jamie Smith |
0:82ee5f7adbb0 | 32 | |
Jamie Smith |
0:82ee5f7adbb0 | 33 | void test_stabilityClassifier(); |
Jamie Smith |
0:82ee5f7adbb0 | 34 | |
Jamie Smith |
0:82ee5f7adbb0 | 35 | void test_metadata(); |
Jamie Smith |
0:82ee5f7adbb0 | 36 | |
Jamie Smith |
0:82ee5f7adbb0 | 37 | void test_orientation(); |
Jamie Smith |
1:14c135ea7134 | 38 | |
Jamie Smith |
1:14c135ea7134 | 39 | void test_permanentOrientation(); |
Jamie Smith |
0:82ee5f7adbb0 | 40 | |
Jamie Smith |
0:82ee5f7adbb0 | 41 | void test_disable(); |
Jamie Smith |
0:82ee5f7adbb0 | 42 | |
Jamie Smith |
0:82ee5f7adbb0 | 43 | }; |