Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Module wrapper for Isentek IST8310 magnetometers. More...
#include "modules/sensors/mag_ist8310.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 | IST8310_CHAN_X 1 |
#define | IST8310_CHAN_Y 0 |
#define | IST8310_CHAN_Z 2 |
#define | IST8310_CHAN_X_SIGN + |
#define | IST8310_CHAN_Y_SIGN + |
#define | IST8310_CHAN_Z_SIGN + |
Functions | |
void | mag_ist8310_module_init (void) |
void | mag_ist8310_module_periodic (void) |
void | mag_ist8310_module_event (void) |
void | mag_ist8310_report (void) |
Variables | |
struct IST8310 | mag_ist8310 |
Module wrapper for Isentek IST8310 magnetometers.
Definition in file mag_ist8310.c.
#define IST8310_CHAN_X 1 |
Definition at line 35 of file mag_ist8310.c.
#define IST8310_CHAN_X_SIGN + |
Definition at line 44 of file mag_ist8310.c.
#define IST8310_CHAN_Y 0 |
Definition at line 38 of file mag_ist8310.c.
#define IST8310_CHAN_Y_SIGN + |
Definition at line 47 of file mag_ist8310.c.
#define IST8310_CHAN_Z 2 |
Definition at line 41 of file mag_ist8310.c.
#define IST8310_CHAN_Z_SIGN + |
Definition at line 50 of file mag_ist8310.c.
void mag_ist8310_module_event | ( | void | ) |
Definition at line 77 of file mag_ist8310.c.
References IST8310::data, IST8310::data_available, get_sys_time_usec(), IST8310_CHAN_X, IST8310_CHAN_X_SIGN, IST8310_CHAN_Y, IST8310_CHAN_Y_SIGN, IST8310_CHAN_Z, IST8310_CHAN_Z_SIGN, ist8310_event(), mag_ist8310, mag_ist8310_report(), and MAG_IST8310_SENDER_ID.
void mag_ist8310_module_init | ( | void | ) |
Definition at line 55 of file mag_ist8310.c.
References ANGLE_BFP_OF_REAL, imu_set_defaults_mag(), int32_rmat_of_eulers, IST8310_ADDR, ist8310_init(), mag_ist8310, and MAG_IST8310_SENDER_ID.
void mag_ist8310_module_periodic | ( | void | ) |
Definition at line 72 of file mag_ist8310.c.
References ist8310_periodic(), and mag_ist8310.
void mag_ist8310_report | ( | void | ) |
Definition at line 104 of file mag_ist8310.c.
References IST8310::data, DefaultChannel, DefaultDevice, IST8310_CHAN_X, IST8310_CHAN_X_SIGN, IST8310_CHAN_Y, IST8310_CHAN_Y_SIGN, IST8310_CHAN_Z, IST8310_CHAN_Z_SIGN, mag_ist8310, MAG_IST8310_SENDER_ID, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.
Referenced by mag_ist8310_module_event().
struct IST8310 mag_ist8310 |
Definition at line 1 of file mag_ist8310.c.
Referenced by mag_ist8310_module_event(), mag_ist8310_module_init(), mag_ist8310_module_periodic(), and mag_ist8310_report().