APM:Libraries
Classes | Macros | Variables
AP_Compass_AK8963.cpp File Reference
#include <assert.h>
#include <utility>
#include <AP_Math/AP_Math.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_Compass_AK8963.h"
#include <AP_InertialSensor/AP_InertialSensor_Invensense.h>
Include dependency graph for AP_Compass_AK8963.cpp:

Go to the source code of this file.

Classes

struct  sample_regs
 

Macros

#define AK8963_I2C_ADDR   0x0c
 
#define AK8963_WIA   0x00
 
#define AK8963_Device_ID   0x48
 
#define AK8963_HXL   0x03
 
#define AK8963_CNTL1   0x0A
 
#define AK8963_CONTINUOUS_MODE1   0x02
 
#define AK8963_CONTINUOUS_MODE2   0x06
 
#define AK8963_SELFTEST_MODE   0x08
 
#define AK8963_POWERDOWN_MODE   0x00
 
#define AK8963_FUSE_MODE   0x0f
 
#define AK8963_16BIT_ADC   0x10
 
#define AK8963_14BIT_ADC   0x00
 
#define AK8963_CNTL2   0x0B
 
#define AK8963_RESET   0x01
 
#define AK8963_ASAX   0x10
 
#define AK8963_MILLIGAUSS_SCALE   10.0f
 

Variables

const AP_HAL::HALhal
 

Macro Definition Documentation

◆ AK8963_14BIT_ADC

#define AK8963_14BIT_ADC   0x00

Definition at line 39 of file AP_Compass_AK8963.cpp.

◆ AK8963_16BIT_ADC

#define AK8963_16BIT_ADC   0x10

◆ AK8963_ASAX

#define AK8963_ASAX   0x10

Definition at line 44 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::_calibrate().

◆ AK8963_CNTL1

#define AK8963_CNTL1   0x0A

◆ AK8963_CNTL2

#define AK8963_CNTL2   0x0B

Definition at line 41 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::_reset().

◆ AK8963_CONTINUOUS_MODE1

#define AK8963_CONTINUOUS_MODE1   0x02

Definition at line 33 of file AP_Compass_AK8963.cpp.

◆ AK8963_CONTINUOUS_MODE2

#define AK8963_CONTINUOUS_MODE2   0x06

Definition at line 34 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::_setup_mode().

◆ AK8963_Device_ID

#define AK8963_Device_ID   0x48

Definition at line 27 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::_check_id().

◆ AK8963_FUSE_MODE

#define AK8963_FUSE_MODE   0x0f

Definition at line 37 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::_calibrate().

◆ AK8963_HXL

#define AK8963_HXL   0x03

◆ AK8963_I2C_ADDR

#define AK8963_I2C_ADDR   0x0c

Definition at line 24 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::probe_mpu9250().

◆ AK8963_MILLIGAUSS_SCALE

#define AK8963_MILLIGAUSS_SCALE   10.0f

Definition at line 46 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::_update().

◆ AK8963_POWERDOWN_MODE

#define AK8963_POWERDOWN_MODE   0x00

Definition at line 36 of file AP_Compass_AK8963.cpp.

◆ AK8963_RESET

#define AK8963_RESET   0x01

Definition at line 42 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::_reset().

◆ AK8963_SELFTEST_MODE

#define AK8963_SELFTEST_MODE   0x08

Definition at line 35 of file AP_Compass_AK8963.cpp.

◆ AK8963_WIA

#define AK8963_WIA   0x00

Definition at line 26 of file AP_Compass_AK8963.cpp.

Referenced by AP_Compass_AK8963::_check_id().

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.