Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
mag_rm3100.c File Reference
#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 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

◆ RM3100_ADDR

#define RM3100_ADDR   RM3100_ADDR0

Definition at line 57 of file mag_rm3100.c.

◆ RM3100_CHAN_X

#define RM3100_CHAN_X   0

Definition at line 34 of file mag_rm3100.c.

◆ RM3100_CHAN_X_SIGN

#define RM3100_CHAN_X_SIGN   +

Definition at line 43 of file mag_rm3100.c.

◆ RM3100_CHAN_Y

#define RM3100_CHAN_Y   1

Definition at line 37 of file mag_rm3100.c.

◆ RM3100_CHAN_Y_SIGN

#define RM3100_CHAN_Y_SIGN   +

Definition at line 46 of file mag_rm3100.c.

◆ RM3100_CHAN_Z

#define RM3100_CHAN_Z   2

Definition at line 40 of file mag_rm3100.c.

◆ RM3100_CHAN_Z_SIGN

#define RM3100_CHAN_Z_SIGN   +

Definition at line 49 of file mag_rm3100.c.

◆ RM3100_DATA_RATE

#define RM3100_DATA_RATE   RM3100_TMRC_DEFAULT

Definition at line 53 of file mag_rm3100.c.

Function Documentation

◆ mag_rm3100_module_event()

◆ mag_rm3100_module_init()

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:

◆ mag_rm3100_module_periodic()

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:

◆ mag_rm3100_report()

void mag_rm3100_report ( void  )

Variable Documentation

◆ mag_rm3100