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_aspirin2.c File Reference
#include <math.h>
#include "imu_aspirin2.h"
#include "mcu_periph/i2c.h"
#include "led.h"
#include "subsystems/abi.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#include "../../peripherals/mpu60x0.h"
+ Include dependency graph for imu_aspirin2.c:

Go to the source code of this file.

Macros

#define PERIODIC_FREQUENCY   60
 
#define MPU_OFFSET_GYRO   9
 
#define MPU_OFFSET_ACC   1
 

Functions

void imu_impl_init (void)
 must be defined by underlying hardware More...
 
void imu_periodic (void)
 optional. More...
 
void aspirin2_subsystem_downlink_raw (void)
 
void aspirin2_subsystem_event (void)
 

Variables

struct i2c_transaction aspirin2_mpu60x0
 
struct Imu imu
 global IMU state More...
 

Macro Definition Documentation

#define MPU_OFFSET_ACC   1
#define MPU_OFFSET_GYRO   9

Function Documentation

void imu_impl_init ( void  )
void imu_periodic ( void  )

optional.

If not provided by implementation, empty function is used

Definition at line 149 of file imu_aspirin2.c.

References aspirin2_mpu60x0, i2c_transaction::buf, i2c_transceive(), MPU60X0_ADDR, and MPU60X0_REG_INT_STATUS.

+ Here is the call graph for this function:

Variable Documentation

struct i2c_transaction aspirin2_mpu60x0

Definition at line 39 of file imu_aspirin2.c.

Referenced by aspirin2_subsystem_event(), imu_impl_init(), and imu_periodic().