Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu.c File Reference

Inertial Measurement Unit interface. More...

#include "subsystems/imu.h"
#include "state.h"
#include "subsystems/abi.h"
+ Include dependency graph for imu.c:

Go to the source code of this file.

Functions

void imu_init (void)
 
void imu_SetBodyToImuPhi (float phi)
 
void imu_SetBodyToImuTheta (float theta)
 
void imu_SetBodyToImuPsi (float psi)
 
void imu_SetBodyToImuCurrent (float set)
 
void WEAK imu_periodic (void)
 optional. More...
 
void WEAK imu_scale_gyro (struct Imu *_imu)
 
void WEAK imu_scale_accel (struct Imu *_imu)
 
void WEAK imu_scale_mag (struct Imu *_imu)
 

Variables

struct Imu imu
 global IMU state More...
 

Detailed Description

Inertial Measurement Unit interface.

Definition in file imu.c.

Function Documentation

void WEAK imu_periodic ( void  )

optional.

If not provided by implementation, empty function is used

optional.

Read the MPU60x0 every periodic call and the HMC58XX every 10th call.

Definition at line 209 of file imu.c.

References imu_apogee, ImuApogee::mpu, and mpu60x0_i2c_periodic().

+ Here is the call graph for this function:

void imu_SetBodyToImuPhi ( float  phi)

Definition at line 152 of file imu.c.

References Imu::body_to_imu, imu, orientationGetEulers_f(), orientationGetQuat_f(), orientationSetEulers_f(), and FloatEulers::phi.

+ Here is the call graph for this function:

void imu_SetBodyToImuPsi ( float  psi)

Definition at line 170 of file imu.c.

References Imu::body_to_imu, imu, orientationGetEulers_f(), orientationGetQuat_f(), orientationSetEulers_f(), and FloatEulers::psi.

+ Here is the call graph for this function:

void imu_SetBodyToImuTheta ( float  theta)

Definition at line 161 of file imu.c.

References Imu::body_to_imu, imu, orientationGetEulers_f(), orientationGetQuat_f(), orientationSetEulers_f(), and FloatEulers::theta.

+ Here is the call graph for this function:

Variable Documentation

struct Imu imu

global IMU state

Definition at line 108 of file imu.c.

Referenced by imu_init(), imu_SetBodyToImuCurrent(), imu_SetBodyToImuPhi(), imu_SetBodyToImuPsi(), and imu_SetBodyToImuTheta().