Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Module wrapper for Honeywell HMC5843 and HMC5883 magnetometers. More...
#include "modules/sensors/mag_hmc58xx.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 | HMC58XX_CHAN_X 0 |
#define | HMC58XX_CHAN_Y 1 |
#define | HMC58XX_CHAN_Z 2 |
#define | HMC58XX_CHAN_X_SIGN + |
#define | HMC58XX_CHAN_Y_SIGN + |
#define | HMC58XX_CHAN_Z_SIGN + |
Functions | |
void | mag_hmc58xx_module_init (void) |
void | mag_hmc58xx_module_periodic (void) |
void | mag_hmc58xx_module_event (void) |
void | mag_hmc58xx_report (void) |
Variables | |
struct Hmc58xx | mag_hmc58xx |
Module wrapper for Honeywell HMC5843 and HMC5883 magnetometers.
Definition in file mag_hmc58xx.c.
#define HMC58XX_CHAN_X 0 |
Definition at line 36 of file mag_hmc58xx.c.
#define HMC58XX_CHAN_X_SIGN + |
Definition at line 45 of file mag_hmc58xx.c.
#define HMC58XX_CHAN_Y 1 |
Definition at line 39 of file mag_hmc58xx.c.
#define HMC58XX_CHAN_Y_SIGN + |
Definition at line 48 of file mag_hmc58xx.c.
#define HMC58XX_CHAN_Z 2 |
Definition at line 42 of file mag_hmc58xx.c.
#define HMC58XX_CHAN_Z_SIGN + |
Definition at line 51 of file mag_hmc58xx.c.
void mag_hmc58xx_module_event | ( | void | ) |
Definition at line 85 of file mag_hmc58xx.c.
References Hmc58xx::data, Hmc58xx::data_available, get_sys_time_usec(), HMC58XX_CHAN_X, HMC58XX_CHAN_X_SIGN, HMC58XX_CHAN_Y, HMC58XX_CHAN_Y_SIGN, HMC58XX_CHAN_Z, HMC58XX_CHAN_Z_SIGN, hmc58xx_event(), int32_rmat_vmult(), mag_hmc58xx, mag_hmc58xx_report(), MAG_HMC58XX_SENDER_ID, and VECT3_COPY.
void mag_hmc58xx_module_init | ( | void | ) |
Definition at line 66 of file mag_hmc58xx.c.
References ANGLE_BFP_OF_REAL, HMC58XX_ADDR, hmc58xx_init(), int32_rmat_of_eulers, and mag_hmc58xx.
void mag_hmc58xx_module_periodic | ( | void | ) |
Definition at line 80 of file mag_hmc58xx.c.
References hmc58xx_periodic(), and mag_hmc58xx.
void mag_hmc58xx_report | ( | void | ) |
Definition at line 120 of file mag_hmc58xx.c.
References Hmc58xx::data, DefaultChannel, DefaultDevice, HMC58XX_CHAN_X, HMC58XX_CHAN_X_SIGN, HMC58XX_CHAN_Y, HMC58XX_CHAN_Y_SIGN, HMC58XX_CHAN_Z, HMC58XX_CHAN_Z_SIGN, mag_hmc58xx, MAG_HMC58XX_SENDER_ID, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.
Referenced by mag_hmc58xx_module_event().
struct Hmc58xx mag_hmc58xx |
Definition at line 1 of file mag_hmc58xx.c.
Referenced by mag_hmc58xx_module_event(), mag_hmc58xx_module_init(), mag_hmc58xx_module_periodic(), and mag_hmc58xx_report().