Shield Code 6.0
Loading...
Searching...
No Matches
IMU.hpp
Go to the documentation of this file.
1
14#ifndef IMU_HPP
15#define IMU_HPP
16#include <Arduino.h>
17#include <Wire.h>
18#include <LIS3MDL.h>
19#include <LSM6.h>
25void initIMU(LIS3MDL* compass, LSM6* gyro);
29void sampleIMU(LIS3MDL* compass, LSM6* gyro, int16_t* data);
30#endif
void initIMU(LIS3MDL *compass, LSM6 *gyro)
Initializes the IMU. Sets settings for all used axes.
Definition: IMU.cpp:15
void sampleIMU(LIS3MDL *compass, LSM6 *gyro, int16_t *data)
Gets the IMU data.
Definition: IMU.cpp:80
LSM6 gyro
Definition: main.cpp:89
LIS3MDL compass
Definition: main.cpp:88