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

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

#include <Arduino.h>
#include <Wire.h>
#include <LIS3MDL.h>
#include <LSM6.h>
#include <IMU.hpp>
Include dependency graph for IMU.cpp:

Go to the source code of this file.

Functions

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

Detailed Description

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

There is extensive sensor and register information commented in this file.

Definition in file IMU.cpp.

Function Documentation

◆ initIMU()

void initIMU ( LIS3MDL *  mag,
LSM6 *  gyro_acc 
)

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.

Definition at line 80 of file IMU.cpp.