|
int16_t | readTemp () |
| Returns the temperature in Celcius. Will be 25 degrees, which is the optimal temparture for the gyroscope. Is used internally for self-calibration. More...
|
|
uint16_t | init_imu (enum gyro_scale gScl, enum accel_scale aScl, enum mag_scale mScl, enum gyro_odr gODR, enum accel_odr aODR, enum mag_odr mODR) |
| Initilizes the IMU and enables all 9 axes and set the respective scales and data rates. More...
|
|
void | initGyro () |
| initialize the gyroscope, must be done before reading from the gyroscope More...
|
|
void | assert (char v) |
|
void | initAccel () |
| initilize the accelometer, this must be called before using any accelometer fucntions More...
|
|
void | initMag () |
|
void | readAccel (int16_t *ax, int16_t *ay, int16_t *az) |
|
void | readMag (int16_t *mx, int16_t *my, int16_t *mz) |
|
void | readGyro (int16_t *gx, int16_t *gy, int16_t *gz) |
|
void | read_gyro (float *x, float *y, float *z) |
| Reads the gyroscope and calculates the real value from the raw reading. More...
|
|
void | read_accel (float *x, float *y, float *z) |
| Reads the accelometer and calculates the real value from the raw reading. More...
|
|
void | read_mag (float *x, float *y, float *z) |
| Reads the magnemeter and calculates the real value from the raw reading. More...
|
|
float | calcGyro (int16_t gyro) |
| takes a raw gyro reading and returns the actual value More...
|
|
float | calcAccel (int16_t accel) |
|
float | calcMag (int16_t mag) |
|
void | setGyroScale (enum gyro_scale gScl) |
| set the scale of the gyroscope see enum gyro_Scale to see what values this can take. More...
|
|
void | setAccelScale (enum accel_scale aScl) |
| see the setGyroScle function More...
|
|
void | setMagScale (enum mag_scale mScl) |
| see the setGyroScale function More...
|
|
void | setGyroODR (enum gyro_odr gRate) |
| set the data capture rate of the gyroscope see the enum gyro_odr to see what values this can take. More...
|
|
void | setAccelODR (enum accel_odr aRate) |
| see setGyroODR function More...
|
|
void | setAccelABW (enum accel_abw abwRate) |
|
void | setMagODR (enum mag_odr mRate) |
| see the setGyroODR function More...
|
|
void | calcgRes () |
| sets the gRes variable to the correct resolution of the gyroscope readings More...
|
|
void | calcaRes () |
| sets the aRes variable to the correct resolution of the accelometer readings More...
|
|
void | calcmRes () |
| sets the mRes variable to the correct resolution of the magenmeter readings More...
|
|
void | imu_wb (uint8_t address, uint8_t subAddress, uint8_t data) |
| Writes a byte to the register at the address specified by subAddress. More...
|
|
uint8_t | imu_rb (uint8_t address, uint8_t subAddress) |
| Read one byte from the device. More...
|
|
void | imu_rbs (uint8_t address, uint8_t subAddress, uint8_t *dest, uint8_t count) |
| read multiple bytes from the imu More...
|
|