Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Module wrapper for PNI RM3100 magnetometers. More...
#include "modules/sensors/mag_rm3100.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 | RM3100_CHAN_X 0 |
#define | RM3100_CHAN_Y 1 |
#define | RM3100_CHAN_Z 2 |
#define | RM3100_CHAN_X_SIGN + |
#define | RM3100_CHAN_Y_SIGN + |
#define | RM3100_CHAN_Z_SIGN + |
#define | RM3100_DATA_RATE RM3100_TMRC_DEFAULT |
#define | RM3100_ADDR RM3100_ADDR0 |
Functions | |
void | mag_rm3100_module_init (void) |
void | mag_rm3100_module_periodic (void) |
void | mag_rm3100_module_event (void) |
void | mag_rm3100_report (void) |
Variables | |
struct Rm3100 | mag_rm3100 |
Module wrapper for PNI RM3100 magnetometers.
Definition in file mag_rm3100.c.
#define RM3100_ADDR RM3100_ADDR0 |
Definition at line 58 of file mag_rm3100.c.
#define RM3100_CHAN_X 0 |
Definition at line 35 of file mag_rm3100.c.
#define RM3100_CHAN_X_SIGN + |
Definition at line 44 of file mag_rm3100.c.
#define RM3100_CHAN_Y 1 |
Definition at line 38 of file mag_rm3100.c.
#define RM3100_CHAN_Y_SIGN + |
Definition at line 47 of file mag_rm3100.c.
#define RM3100_CHAN_Z 2 |
Definition at line 41 of file mag_rm3100.c.
#define RM3100_CHAN_Z_SIGN + |
Definition at line 50 of file mag_rm3100.c.
#define RM3100_DATA_RATE RM3100_TMRC_DEFAULT |
Definition at line 54 of file mag_rm3100.c.
void mag_rm3100_module_event | ( | void | ) |
Definition at line 92 of file mag_rm3100.c.
References Rm3100::data, Rm3100::data_available, get_sys_time_usec(), int32_rmat_vmult(), mag_rm3100, mag_rm3100_report(), MAG_RM3100_SENDER_ID, RM3100_CHAN_X, RM3100_CHAN_X_SIGN, RM3100_CHAN_Y, RM3100_CHAN_Y_SIGN, RM3100_CHAN_Z, RM3100_CHAN_Z_SIGN, rm3100_event(), and VECT3_COPY.
void mag_rm3100_module_init | ( | void | ) |
Definition at line 73 of file mag_rm3100.c.
References ANGLE_BFP_OF_REAL, int32_rmat_of_eulers, mag_rm3100, RM3100_ADDR, RM3100_DATA_RATE, and rm3100_init().
void mag_rm3100_module_periodic | ( | void | ) |
Definition at line 87 of file mag_rm3100.c.
References mag_rm3100, and rm3100_periodic().
void mag_rm3100_report | ( | void | ) |
Definition at line 127 of file mag_rm3100.c.
References Rm3100::data, DefaultChannel, DefaultDevice, mag_rm3100, MAG_RM3100_SENDER_ID, RM3100_CHAN_X, RM3100_CHAN_X_SIGN, RM3100_CHAN_Y, RM3100_CHAN_Y_SIGN, RM3100_CHAN_Z, RM3100_CHAN_Z_SIGN, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.
Referenced by mag_rm3100_module_event().
struct Rm3100 mag_rm3100 |
Definition at line 1 of file mag_rm3100.c.
Referenced by mag_rm3100_module_event(), mag_rm3100_module_init(), mag_rm3100_module_periodic(), and mag_rm3100_report().