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_ppzuav.c File Reference
#include <math.h>
#include "imu_ppzuav.h"
#include "mcu_periph/i2c.h"
#include "led.h"
#include "mcu_periph/gpio_arch.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#include "../../peripherals/itg3200.h"
#include "../../peripherals/adxl345.h"
#include "../../peripherals/hmc5843.h"
+ Include dependency graph for imu_ppzuav.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#define HMC5843_NO_IRQ
 
#define PERIODIC_FREQUENCY   60
 
#define ITG_STA_DAT_OFFSET   3
 

Functions

void imu_impl_init (void)
 
void imu_periodic (void)
 
void ppzuavimu_module_downlink_raw (void)
 
void ppzuavimu_module_event (void)
 

Variables

volatile bool_t mag_valid
 
volatile bool_t gyr_valid
 
volatile bool_t acc_valid
 
struct i2c_transaction ppzuavimu_hmc5843
 
struct i2c_transaction ppzuavimu_itg3200
 
struct i2c_transaction ppzuavimu_adxl345
 
struct Imu imu
 global IMU state More...
 

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 35 of file imu_ppzuav.c.

#define HMC5843_NO_IRQ

Definition at line 40 of file imu_ppzuav.c.

#define ITG_STA_DAT_OFFSET   3

Referenced by ppzuavimu_module_event().

#define PERIODIC_FREQUENCY   60

Definition at line 61 of file imu_ppzuav.c.

Function Documentation

Variable Documentation

volatile bool_t acc_valid

Definition at line 48 of file imu_ppzuav.c.

Referenced by ppzuavimu_module_event().

volatile bool_t gyr_valid

Definition at line 47 of file imu_ppzuav.c.

Referenced by ppzuavimu_module_event().

struct Imu imu

global IMU state

Definition at line 57 of file imu_ppzuav.c.

Referenced by ppzuavimu_module_downlink_raw(), and ppzuavimu_module_event().

volatile bool_t mag_valid

Definition at line 46 of file imu_ppzuav.c.

Referenced by ppzuavimu_module_event().

struct i2c_transaction ppzuavimu_adxl345

Definition at line 53 of file imu_ppzuav.c.

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

struct i2c_transaction ppzuavimu_hmc5843

Definition at line 51 of file imu_ppzuav.c.

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

struct i2c_transaction ppzuavimu_itg3200

Definition at line 52 of file imu_ppzuav.c.

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