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_analog.c File Reference
#include "imu_analog.h"
#include "mcu_periph/adc.h"
#include "subsystems/abi.h"
+ Include dependency graph for imu_analog.c:

Go to the source code of this file.

Functions

void imu_impl_init (void)
 must be defined by underlying hardware More...
 
void imu_periodic (void)
 optional. More...
 
void imu_scale_accel (struct Imu *_imu)
 

Variables

int imu_overrun
 
static struct adc_buf analog_imu_adc_buf [NB_ANALOG_IMU_ADC]
 

Function Documentation

void imu_impl_init ( void  )

must be defined by underlying hardware

Definition at line 30 of file imu_analog.c.

References adc_buf_channel(), analog_imu_adc_buf, and imu_overrun.

+ Here is the call graph for this function:

void imu_periodic ( void  )

optional.

If not provided by implementation, empty function is used

Definition at line 56 of file imu_analog.c.

References Imu::accel, Imu::accel_unscaled, analog_imu_adc_buf, get_sys_time_usec(), Imu::gyro, Imu::gyro_unscaled, adc_buf::head, imu, IMU_ANALOG_ID, imu_overrun, imu_scale_accel(), imu_scale_gyro(), Int32Rates::p, Int32Rates::q, Int32Rates::r, adc_buf::sum, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.

+ Here is the call graph for this function:

void imu_scale_accel ( struct Imu _imu)

Definition at line 118 of file imu_analog.c.

Referenced by imu_periodic().

+ Here is the caller graph for this function:

Variable Documentation

struct adc_buf analog_imu_adc_buf[NB_ANALOG_IMU_ADC]
static

Definition at line 28 of file imu_analog.c.

Referenced by imu_impl_init(), and imu_periodic().

int imu_overrun

Definition at line 26 of file imu_analog.c.

Referenced by imu_impl_init(), and imu_periodic().