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>
25
void
initIMU
(LIS3MDL*
compass
, LSM6*
gyro
);
29
void
sampleIMU
(LIS3MDL*
compass
, LSM6*
gyro
, int16_t* data);
30
#endif
initIMU
void initIMU(LIS3MDL *compass, LSM6 *gyro)
Initializes the IMU. Sets settings for all used axes.
Definition:
IMU.cpp:15
sampleIMU
void sampleIMU(LIS3MDL *compass, LSM6 *gyro, int16_t *data)
Gets the IMU data.
Definition:
IMU.cpp:80
gyro
LSM6 gyro
Definition:
main.cpp:89
compass
LIS3MDL compass
Definition:
main.cpp:88
include
IMU.hpp
Generated by
1.9.6