APM:Libraries
|
#include "AP_Compass_QMC5883L.h"
#include <stdio.h>
#include <utility>
#include <AP_HAL/AP_HAL.h>
#include <AP_HAL/utility/sparse-endian.h>
#include <AP_Math/AP_Math.h>
Go to the source code of this file.
Macros | |
#define | QMC5883L_REG_CONF1 0x09 |
#define | QMC5883L_REG_CONF2 0x0A |
#define | QMC5883L_ODR_10HZ (0x00 << 2) |
#define | QMC5883L_ODR_50HZ (0x01 << 2) |
#define | QMC5883L_ODR_100HZ (0x02 << 2) |
#define | QMC5883L_ODR_200HZ (0x03 << 2) |
#define | QMC5883L_MODE_STANDBY 0x00 |
#define | QMC5883L_MODE_CONTINUOUS 0x01 |
#define | QMC5883L_RNG_2G (0x00 << 4) |
#define | QMC5883L_RNG_8G (0x01 << 4) |
#define | QMC5883L_OSR_512 (0x00 << 6) |
#define | QMC5883L_OSR_256 (0x01 << 6) |
#define | QMC5883L_OSR_128 (0x10 << 6) |
#define | QMC5883L_OSR_64 (0x11 << 6) |
#define | QMC5883L_RST 0x80 |
#define | QMC5883L_REG_DATA_OUTPUT_X 0x00 |
#define | QMC5883L_REG_STATUS 0x06 |
#define | QMC5883L_REG_ID 0x0D |
#define | QMC5883_ID_VAL 0xFF |
Variables | |
const AP_HAL::HAL & | hal |
#define QMC5883_ID_VAL 0xFF |
Definition at line 56 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::_check_whoami().
#define QMC5883L_MODE_CONTINUOUS 0x01 |
Definition at line 40 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::init().
#define QMC5883L_MODE_STANDBY 0x00 |
Definition at line 39 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_ODR_100HZ (0x02 << 2) |
Definition at line 35 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::init().
#define QMC5883L_ODR_10HZ (0x00 << 2) |
Definition at line 33 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_ODR_200HZ (0x03 << 2) |
Definition at line 36 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_ODR_50HZ (0x01 << 2) |
Definition at line 34 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_OSR_128 (0x10 << 6) |
Definition at line 47 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_OSR_256 (0x01 << 6) |
Definition at line 46 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_OSR_512 (0x00 << 6) |
Definition at line 45 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::init().
#define QMC5883L_OSR_64 (0x11 << 6) |
Definition at line 48 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_REG_CONF1 0x09 |
Definition at line 29 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::init().
#define QMC5883L_REG_CONF2 0x0A |
Definition at line 30 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_REG_DATA_OUTPUT_X 0x00 |
Definition at line 52 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::_dump_registers(), and AP_Compass_QMC5883L::timer().
#define QMC5883L_REG_ID 0x0D |
Definition at line 55 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::_check_whoami().
#define QMC5883L_REG_STATUS 0x06 |
Definition at line 53 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::timer().
#define QMC5883L_RNG_2G (0x00 << 4) |
Definition at line 42 of file AP_Compass_QMC5883L.cpp.
#define QMC5883L_RNG_8G (0x01 << 4) |
Definition at line 43 of file AP_Compass_QMC5883L.cpp.
Referenced by AP_Compass_QMC5883L::init().
#define QMC5883L_RST 0x80 |
Definition at line 50 of file AP_Compass_QMC5883L.cpp.
const AP_HAL::HAL& hal |
Definition at line 14 of file AC_PID_test.cpp.