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_nps.c File Reference
#include "subsystems/imu.h"
#include "subsystems/abi.h"
#include "generated/airframe.h"
#include "nps_sensors.h"
+ Include dependency graph for imu_nps.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_feed_gyro_accel (void)
 
void imu_feed_mag (void)
 
void imu_nps_event (void)
 

Variables

struct ImuNps imu_nps
 

Function Documentation

void imu_feed_gyro_accel ( void  )
void imu_feed_mag ( void  )

Definition at line 57 of file imu_nps.c.

References imu, imu_nps, ImuNps::mag_available, Imu::mag_unscaled, TRUE, VECT3_ASSIGN, and Int32Vect3::x.

void imu_impl_init ( void  )

must be defined by underlying hardware

must be defined by underlying hardware

Todo:
drdy int handling for adxl345
Todo:
eoc interrupt for itg3200, polling for now (including status reg)
Todo:
drdy int handling for adxl345
Todo:
eoc interrupt for itg3200, polling for now (including status reg)
Todo:
drdy int handling for adxl345

Definition at line 30 of file imu_nps.c.

References ImuNps::accel_available, FALSE, ImuNps::gyro_available, imu_nps, and ImuNps::mag_available.

void imu_nps_event ( void  )
void 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 39 of file imu_nps.c.

Variable Documentation

struct ImuNps imu_nps

Definition at line 28 of file imu_nps.c.

Referenced by imu_feed_gyro_accel(), imu_feed_mag(), imu_impl_init(), and imu_nps_event().