Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
imu_aspirin2.c File Reference
#include <math.h>
#include "imu_aspirin2.h"
#include "mcu_periph/i2c.h"
#include "led.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 DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#define PERIODIC_FREQUENCY   60
 
#define MPU_OFFSET_GYRO   9
 
#define MPU_OFFSET_ACC   1
 

Functions

void imu_impl_init (void)
 
void imu_periodic (void)
 
void aspirin2_subsystem_downlink_raw (void)
 
void aspirin2_subsystem_event (void)
 

Variables

volatile bool_t mag_valid
 
volatile bool_t gyr_valid
 
volatile bool_t acc_valid
 
struct i2c_transaction aspirin2_mpu60x0
 
struct Imu imu
 global IMU state More...
 

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 32 of file imu_aspirin2.c.

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

Definition at line 54 of file imu_aspirin2.c.

Referenced by imu_periodic(), init_ap(), init_fbw(), main(), main_init(), and main_periodic().

Function Documentation

void imu_periodic ( void  )

Variable Documentation

volatile bool_t acc_valid

Definition at line 43 of file imu_aspirin2.c.

Referenced by aspirin2_subsystem_event().

volatile bool_t gyr_valid

Definition at line 42 of file imu_aspirin2.c.

Referenced by aspirin2_subsystem_event().

volatile bool_t mag_valid

Definition at line 41 of file imu_aspirin2.c.