Shield Code 6.0
Loading...
Searching...
No Matches
IMU.hpp File Reference

Header file for the IMU library for Dartmouth's 317 Lab. More...

#include <Arduino.h>
#include <Wire.h>
#include <LIS3MDL.h>
#include <LSM6.h>
Include dependency graph for IMU.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void initIMU (LIS3MDL *compass, LSM6 *gyro)
 Initializes the IMU. Sets settings for all used axes.
 
void sampleIMU (LIS3MDL *compass, LSM6 *gyro, int16_t *data)
 Gets the IMU data.
 

Detailed Description

Header file for the IMU library for Dartmouth's 317 Lab.

This library is used to query the Pololu IMU. This is where we get location, acceleration, and gyroscopic data. This is basically identical to the library used on the Uno based board, which was written by Max Roberts circa 2015, ed. Leah Ryu 2019.

Deprecated code was removed by Sean Wallace 2024-06-20.

Author: Max Roberts Date: 2015-06-22

Definition in file IMU.hpp.

Function Documentation

◆ initIMU()

void initIMU ( LIS3MDL *  mag,
LSM6 *  gyro_acc 
)

Initializes the IMU. Sets settings for all used axes.

Info about registers and settings can be found commented in imu.cpp.

Initializes the IMU. Sets settings for all used axes.

Initializes the IMU. Sets settings for all used axes.

Definition at line 15 of file IMU.cpp.

◆ sampleIMU()

void sampleIMU ( LIS3MDL *  mag,
LSM6 *  imu,
int16_t *  data 
)

Gets the IMU data.

Gets the IMU data.

Definition at line 80 of file IMU.cpp.