Revision 8e095f02 Adafruit_BNO055.h
| Adafruit_BNO055.h | ||
|---|---|---|
| 44 | 44 |
|
| 45 | 45 |
typedef struct |
| 46 | 46 |
{
|
| 47 |
int16_t accel_offset_x; |
|
| 48 |
int16_t accel_offset_y; |
|
| 49 |
int16_t accel_offset_z; |
|
| 50 |
int16_t gyro_offset_x; |
|
| 51 |
int16_t gyro_offset_y; |
|
| 52 |
int16_t gyro_offset_z; |
|
| 53 |
int16_t mag_offset_x; |
|
| 54 |
int16_t mag_offset_y; |
|
| 55 |
int16_t mag_offset_z; |
|
| 56 |
|
|
| 57 |
int16_t accel_radius; |
|
| 58 |
int16_t mag_radius; |
|
| 47 |
uint16_t accel_offset_x;
|
|
| 48 |
uint16_t accel_offset_y;
|
|
| 49 |
uint16_t accel_offset_z;
|
|
| 50 |
uint16_t gyro_offset_x;
|
|
| 51 |
uint16_t gyro_offset_y;
|
|
| 52 |
uint16_t gyro_offset_z;
|
|
| 53 |
uint16_t mag_offset_x;
|
|
| 54 |
uint16_t mag_offset_y;
|
|
| 55 |
uint16_t mag_offset_z;
|
|
| 56 |
|
|
| 57 |
uint16_t accel_radius;
|
|
| 58 |
uint16_t mag_radius;
|
|
| 59 | 59 |
} adafruit_bno055_offsets_t; |
| 60 | 60 |
|
| 61 | 61 |
class Adafruit_BNO055 : public Adafruit_Sensor |
| ... | ... | |
| 279 | 279 |
void getSensor(sensor_t*); |
| 280 | 280 |
|
| 281 | 281 |
/* Functions to deal with raw calibration data */ |
| 282 |
bool getSensorOffsets(int8_t* calibData); |
|
| 282 |
bool getSensorOffsets(uint8_t* calibData);
|
|
| 283 | 283 |
bool getSensorOffsets(adafruit_bno055_offsets_t &offsets_type); |
| 284 |
void setSensorOffsets(const int8_t* calibData); |
|
| 284 |
void setSensorOffsets(const uint8_t* calibData);
|
|
| 285 | 285 |
void setSensorOffsets(const adafruit_bno055_offsets_t &offsets_type); |
| 286 | 286 |
bool isFullyCalibrated(void); |
| 287 | 287 |
|
Also available in: Unified diff