Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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 "modules/datalink/downlink.h"
#include "generated/airframe.h"
#include "modules/core/abi.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 58 of file mag_rm3100.c.

◆ RM3100_CHAN_X

#define RM3100_CHAN_X   0

Definition at line 35 of file mag_rm3100.c.

◆ RM3100_CHAN_X_SIGN

#define RM3100_CHAN_X_SIGN   +

Definition at line 44 of file mag_rm3100.c.

◆ RM3100_CHAN_Y

#define RM3100_CHAN_Y   1

Definition at line 38 of file mag_rm3100.c.

◆ RM3100_CHAN_Y_SIGN

#define RM3100_CHAN_Y_SIGN   +

Definition at line 47 of file mag_rm3100.c.

◆ RM3100_CHAN_Z

#define RM3100_CHAN_Z   2

Definition at line 41 of file mag_rm3100.c.

◆ RM3100_CHAN_Z_SIGN

#define RM3100_CHAN_Z_SIGN   +

Definition at line 50 of file mag_rm3100.c.

◆ RM3100_DATA_RATE

#define RM3100_DATA_RATE   RM3100_TMRC_DEFAULT

Definition at line 54 of file mag_rm3100.c.

Function Documentation

◆ mag_rm3100_module_event()

◆ mag_rm3100_module_init()

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().

+ Here is the call graph for this function:

◆ mag_rm3100_module_periodic()

void mag_rm3100_module_periodic ( void  )

Definition at line 87 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