Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Module wrapper for ST LIS3MDL magnetometers. More...
#include "modules/sensors/mag_lis3mdl.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
#include "generated/airframe.h"
#include "modules/core/abi.h"
Go to the source code of this file.
Macros | |
#define | LIS3MDL_CHAN_X 0 |
#define | LIS3MDL_CHAN_Y 1 |
#define | LIS3MDL_CHAN_Z 2 |
#define | LIS3MDL_CHAN_X_SIGN + |
#define | LIS3MDL_CHAN_Y_SIGN + |
#define | LIS3MDL_CHAN_Z_SIGN + |
Functions | |
void | mag_lis3mdl_module_init (void) |
void | mag_lis3mdl_module_periodic (void) |
void | mag_lis3mdl_module_event (void) |
void | mag_lis3mdl_report (void) |
Variables | |
struct Lis3mdl | mag_lis3mdl |
Module wrapper for ST LIS3MDL magnetometers.
Definition in file mag_lis3mdl.c.
#define LIS3MDL_CHAN_X 0 |
Definition at line 35 of file mag_lis3mdl.c.
#define LIS3MDL_CHAN_X_SIGN + |
Definition at line 44 of file mag_lis3mdl.c.
#define LIS3MDL_CHAN_Y 1 |
Definition at line 38 of file mag_lis3mdl.c.
#define LIS3MDL_CHAN_Y_SIGN + |
Definition at line 47 of file mag_lis3mdl.c.
#define LIS3MDL_CHAN_Z 2 |
Definition at line 41 of file mag_lis3mdl.c.
#define LIS3MDL_CHAN_Z_SIGN + |
Definition at line 50 of file mag_lis3mdl.c.
void mag_lis3mdl_module_event | ( | void | ) |
Definition at line 81 of file mag_lis3mdl.c.
References Lis3mdl::data, Lis3mdl::data_available, get_sys_time_usec(), LIS3MDL_CHAN_X, LIS3MDL_CHAN_X_SIGN, LIS3MDL_CHAN_Y, LIS3MDL_CHAN_Y_SIGN, LIS3MDL_CHAN_Z, LIS3MDL_CHAN_Z_SIGN, lis3mdl_event(), mag_lis3mdl, mag_lis3mdl_report(), and MAG_LIS3MDL_SENDER_ID.
void mag_lis3mdl_module_init | ( | void | ) |
Definition at line 55 of file mag_lis3mdl.c.
References ANGLE_BFP_OF_REAL, imu_set_defaults_mag(), int32_rmat_of_eulers, LIS3MDL_ADDR1, LIS3MDL_DATA_RATE_80_HZ, lis3mdl_init(), LIS3MDL_MODE_CONTINUOUS, LIS3MDL_PERFORMANCE_ULTRA_HIGH, LIS3MDL_SCALE_4_GAUSS, mag_lis3mdl, and MAG_LIS3MDL_SENDER_ID.
void mag_lis3mdl_module_periodic | ( | void | ) |
Definition at line 76 of file mag_lis3mdl.c.
References lis3mdl_periodic(), and mag_lis3mdl.
void mag_lis3mdl_report | ( | void | ) |
Definition at line 108 of file mag_lis3mdl.c.
References Lis3mdl::data, DefaultChannel, DefaultDevice, LIS3MDL_CHAN_X, LIS3MDL_CHAN_X_SIGN, LIS3MDL_CHAN_Y, LIS3MDL_CHAN_Y_SIGN, LIS3MDL_CHAN_Z, LIS3MDL_CHAN_Z_SIGN, mag_lis3mdl, MAG_LIS3MDL_SENDER_ID, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.
Referenced by mag_lis3mdl_module_event().
struct Lis3mdl mag_lis3mdl |
Definition at line 1 of file mag_lis3mdl.c.
Referenced by mag_lis3mdl_module_event(), mag_lis3mdl_module_init(), mag_lis3mdl_module_periodic(), and mag_lis3mdl_report().