Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_nps.c File Reference
#include "subsystems/imu.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)
 Navstik IMU initializtion of the MPU-60x0 and HMC58xx. More...
 
void imu_periodic (void)
 Handle all the periodic tasks of the Navstik IMU components. More...
 
void imu_feed_gyro_accel (void)
 
void imu_feed_mag (void)
 

Variables

struct ImuNps imu_nps
 

Function Documentation

void imu_feed_gyro_accel ( void  )
void imu_feed_mag ( void  )

Definition at line 54 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  )

Navstik IMU initializtion of the MPU-60x0 and HMC58xx.

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_periodic ( void  )

Handle all the periodic tasks of the Navstik IMU components.

Read the MPU60x0 every periodic call and the HMC58XX every 10th call.

Definition at line 38 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(), and imu_impl_init().