![]() |
Autodrone
Multi-Domain Vehicle
|
This file contains all the functions to initalize and read data from the MPU-6000. More...
#include "board.h"
Functions | |
bool | mpu6000Init (void) |
MPU-6000 initialization sequence. More... | |
void | readMPU6000 (void) |
Reads MPU-6000 raw data and packs accel, gyro, temp data into variables. More... | |
void | computeMPU6000RTData (void) |
Computes IMU runtime data to find gyro bias. More... | |
void | computeMPU6000TCBias (void) |
Calculates the IMU temperature bias. More... | |
Variables | |
float | accelOneG = 9.8065 |
uint8_t | rawData [16] |
int32_t | accelSum500Hz [3] = { 0, 0, 0 } |
int32_t | accelSummedSamples500Hz [3] |
float | accelTCBias [3] = { 0.0f, 0.0f, 0.0f } |
int16andUint8_t | rawAccel [3] |
float | nonRotatedAccelData [3] |
float | gyroRTBias [3] |
int32_t | gyroSum500Hz [3] = { 0, 0, 0 } |
int32_t | gyroSummedSamples500Hz [3] |
float | gyroTCBias [3] |
int16andUint8_t | rawGyro [3] |
float | nonRotatedGyroData [3] |
uint8_t | accelCalibrating = false |
uint8_t | mpu6000Calibrating = false |
float | mpu6000Temperature |
int16andUint8_t | rawMPU6000Temperature |
uint8_t | whoami [3] |
bool | mpu6000Initialized = false |
This file contains all the functions to initalize and read data from the MPU-6000.
void computeMPU6000RTData | ( | void | ) |
Computes IMU runtime data to find gyro bias.
void computeMPU6000TCBias | ( | void | ) |
Calculates the IMU temperature bias.
bool mpu6000Init | ( | void | ) |
MPU-6000 initialization sequence.
void readMPU6000 | ( | void | ) |
Reads MPU-6000 raw data and packs accel, gyro, temp data into variables.
uint8_t accelCalibrating = false |
float accelOneG = 9.8065 |
int32_t accelSum500Hz[3] = { 0, 0, 0 } |
int32_t accelSummedSamples500Hz[3] |
float accelTCBias[3] = { 0.0f, 0.0f, 0.0f } |
float gyroRTBias[3] |
int32_t gyroSum500Hz[3] = { 0, 0, 0 } |
int32_t gyroSummedSamples500Hz[3] |
float gyroTCBias[3] |
uint8_t mpu6000Calibrating = false |
bool mpu6000Initialized = false |
float mpu6000Temperature |
float nonRotatedAccelData[3] |
float nonRotatedGyroData[3] |
int16andUint8_t rawAccel[3] |
uint8_t rawData[16] |
int16andUint8_t rawGyro[3] |
int16andUint8_t rawMPU6000Temperature |
uint8_t whoami[3] |