My Project
Functions | Variables
imu.cpp File Reference
#include "imu.h"
#include "Arduino.h"
#include "LSM6.h"
Include dependency graph for imu.cpp:

Go to the source code of this file.

Functions

uint8_t initIMU ()
 
uint8_t readAcceleration (float &x, float &y, float &z)
 
uint8_t readGyro (float &x, float &y, float &z)
 
float readAccelX ()
 
float readAccelY ()
 
float readAccelZ ()
 
float readGyroX ()
 
float readGyroY ()
 
float readGyroZ ()
 

Variables

LSM6 imu
 

Function Documentation

◆ initIMU()

uint8_t initIMU ( )

Definition at line 10 of file imu.cpp.

References imu.

Referenced by CanSatInit().

Here is the caller graph for this function:

◆ readAcceleration()

uint8_t readAcceleration ( float &  x,
float &  y,
float &  z 
)

Definition at line 21 of file imu.cpp.

References imu.

◆ readAccelX()

float readAccelX ( )

Definition at line 37 of file imu.cpp.

References imu.

◆ readAccelY()

float readAccelY ( )

Definition at line 42 of file imu.cpp.

References imu.

◆ readAccelZ()

float readAccelZ ( )

Definition at line 47 of file imu.cpp.

References imu.

◆ readGyro()

uint8_t readGyro ( float &  x,
float &  y,
float &  z 
)

Definition at line 29 of file imu.cpp.

References imu.

◆ readGyroX()

float readGyroX ( )

Definition at line 52 of file imu.cpp.

References imu.

◆ readGyroY()

float readGyroY ( )

Definition at line 57 of file imu.cpp.

References imu.

◆ readGyroZ()

float readGyroZ ( )

Definition at line 62 of file imu.cpp.

References imu.

Variable Documentation

◆ imu

LSM6 imu