Eduardo Vergara
/
BNO080-Examples
Example/test programs for my BNO080 driver.
Embed:
(wiki syntax)
Show/hide line numbers
BNOTestSuite.h
00001 /* 00002 USC RPL HAMSTER v2.3 00003 Contributors: Lauren Potterat 00004 */ 00005 00006 #pragma once 00007 00008 #include "BNO080.h" 00009 #include "mbed.h" 00010 00011 Serial pc(USBTX, USBRX); 00012 00013 // These pin assignments are specific to my dev setup -- you'll need to change them 00014 BNO080 imu(&pc, p28, p27, p16, p30, 0x4a, 100000); 00015 00016 class BNOTestSuite{ 00017 public: 00018 00019 void test_printInfo(); 00020 00021 void test_readRotationVector(); 00022 00023 void test_readRotationAcceleration(); 00024 00025 void test_tapDetector(); 00026 00027 void test_gameRotationVector(); 00028 00029 void test_tare(); 00030 00031 void test_magCalibration(); 00032 00033 void test_stabilityClassifier(); 00034 00035 void test_metadata(); 00036 00037 void test_orientation(); 00038 00039 void test_permanentOrientation(); 00040 00041 void test_disable(); 00042 00043 };
Generated on Tue Jul 26 2022 01:46:56 by 1.7.2