-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDevBNO055Ext.h
52 lines (41 loc) · 1.23 KB
/
DevBNO055Ext.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* DevBNO055Ext.h
*
* Created on: 23 ene. 2023
* Author: Carmen
*/
#ifndef DEVBNO055EXT_H_
#define DEVBNO055EXT_H_
#include <utility/imumaths.h>
#include <EEPROM.h>
#include <Wire.h>
#include "I2Cdev.h"
// All configurations are managed in Fenix_config.h
#include "Fenix_config.h"
#include "IMUDevice.h"
//RTIMU Lib headers
#include "RTIMUBNO055.h"
#include "RTIMUSettings.h"
#include "RTFusionRTQF.h"
#include "CalLib.h"
class DevBNO055Ext : public IMUDevice {
public:
DevBNO055Ext();
~DevBNO055Ext();
void IBIT(void);
bool IMU_setup(long EE_address);
bool IMU_startCalibration(bool completeCal);
bool EEload_Calib(long int &eeaddress);
bool EEsave_Calib(long int &eeaddress);
void displaySensorOffsets(void);
float updateHeading();
bool IMU_Cal_Loop(bool completeCal);
bool getCalibrationStatus(uint8_t &system, uint8_t &gyro, uint8_t &accel, uint8_t &mag);
bool IMU_Cal_stopRequest(void);
protected:
private:
RTIMUBNO055 *_imu; // the IMU object
RTFusionRTQF _fusion; // the fusion object
RTIMUSettings _settings; // the settings object
};
#endif /* DEVBNO055EXT_H_ */