Paparazzi UAS  v6.0_unstable-92-g17422e4-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mag_rm3100.c File Reference

Module wrapper for PNI RM3100 magnetometers. More...

#include "modules/sensors/mag_rm3100.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
#include "generated/airframe.h"
+ Include dependency graph for mag_rm3100.c:

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
 

Detailed Description

Module wrapper for PNI RM3100 magnetometers.

Definition in file mag_rm3100.c.

Macro Definition Documentation

#define RM3100_ADDR   RM3100_ADDR0

Definition at line 57 of file mag_rm3100.c.

Referenced by mag_rm3100_module_init().

#define RM3100_CHAN_X   0

Definition at line 34 of file mag_rm3100.c.

Referenced by mag_rm3100_module_event(), and mag_rm3100_report().

#define RM3100_CHAN_X_SIGN   +

Definition at line 43 of file mag_rm3100.c.

Referenced by mag_rm3100_module_event(), and mag_rm3100_report().

#define RM3100_CHAN_Y   1

Definition at line 37 of file mag_rm3100.c.

Referenced by mag_rm3100_module_event(), and mag_rm3100_report().

#define RM3100_CHAN_Y_SIGN   +

Definition at line 46 of file mag_rm3100.c.

Referenced by mag_rm3100_module_event(), and mag_rm3100_report().

#define RM3100_CHAN_Z   2

Definition at line 40 of file mag_rm3100.c.

Referenced by mag_rm3100_module_event(), and mag_rm3100_report().

#define RM3100_CHAN_Z_SIGN   +

Definition at line 49 of file mag_rm3100.c.

Referenced by mag_rm3100_module_event(), and mag_rm3100_report().

#define RM3100_DATA_RATE   RM3100_TMRC_DEFAULT

Definition at line 53 of file mag_rm3100.c.

Referenced by mag_rm3100_module_init().

Function Documentation

void mag_rm3100_module_init ( void  )

Definition at line 74 of file mag_rm3100.c.

References ANGLE_BFP_OF_REAL, int32_rmat_of_eulers, mag_rm3100, RM3100_ADDR, RM3100_DATA_RATE, and rm3100_init().

+ Here is the call graph for this function:

void mag_rm3100_module_periodic ( void  )

Definition at line 88 of file mag_rm3100.c.

References mag_rm3100, and rm3100_periodic().

+ Here is the call graph for this function:

void mag_rm3100_report ( void  )

Variable Documentation