#include <AP_Compass_Backend.h>
|
enum | DevTypes {
DEVTYPE_HMC5883_OLD = 0x01,
DEVTYPE_HMC5883 = 0x07,
DEVTYPE_LSM303D = 0x02,
DEVTYPE_AK8963 = 0x04,
DEVTYPE_BMM150 = 0x05,
DEVTYPE_LSM9DS1 = 0x06,
DEVTYPE_LIS3MDL = 0x08,
DEVTYPE_AK09916 = 0x09,
DEVTYPE_IST8310 = 0x0A,
DEVTYPE_ICM20948 = 0x0B,
DEVTYPE_MMC3416 = 0x0C,
DEVTYPE_QMC5883L = 0x0D,
DEVTYPE_MAG3110 = 0x0E
} |
|
Definition at line 25 of file AP_Compass_Backend.h.
◆ DevTypes
Enumerator |
---|
DEVTYPE_HMC5883_OLD | |
DEVTYPE_HMC5883 | |
DEVTYPE_LSM303D | |
DEVTYPE_AK8963 | |
DEVTYPE_BMM150 | |
DEVTYPE_LSM9DS1 | |
DEVTYPE_LIS3MDL | |
DEVTYPE_AK09916 | |
DEVTYPE_IST8310 | |
DEVTYPE_ICM20948 | |
DEVTYPE_MMC3416 | |
DEVTYPE_QMC5883L | |
DEVTYPE_MAG3110 | |
Definition at line 52 of file AP_Compass_Backend.h.
◆ AP_Compass_Backend()
AP_Compass_Backend::AP_Compass_Backend |
( |
Compass & |
compass | ) |
|
◆ ~AP_Compass_Backend()
virtual AP_Compass_Backend::~AP_Compass_Backend |
( |
void |
| ) |
|
|
inlinevirtual |
◆ accumulate()
virtual void AP_Compass_Backend::accumulate |
( |
void |
| ) |
|
|
inlinevirtual |
◆ apply_corrections()
void AP_Compass_Backend::apply_corrections |
( |
Vector3f & |
mag, |
|
|
uint8_t |
i |
|
) |
| |
|
private |
◆ correct_field()
void AP_Compass_Backend::correct_field |
( |
Vector3f & |
mag, |
|
|
uint8_t |
i |
|
) |
| |
|
protected |
Definition at line 46 of file AP_Compass_Backend.cpp.
Referenced by AP_Compass_SITL::_timer(), AP_Compass_LSM9DS1::_update(), AP_Compass_LSM303D::_update(), AP_Compass_MAG3110::_update(), AP_Compass_BMM150::_update(), AP_Compass_AK8963::_update(), AP_Compass_MMC3416::accumulate_field(), AP_Compass_HIL::read(), AP_Compass_IST8310::timer(), AP_Compass_QMC5883L::timer(), AP_Compass_LIS3MDL::timer(), and AP_Compass_AK09916::timer().
◆ field_ok()
bool AP_Compass_Backend::field_ok |
( |
const Vector3f & |
field | ) |
|
|
protected |
◆ get_error_count()
uint32_t AP_Compass_Backend::get_error_count |
( |
| ) |
const |
|
inlineprotected |
◆ handle_mag_msg()
virtual void AP_Compass_Backend::handle_mag_msg |
( |
Vector3f & |
mag | ) |
|
|
inlinevirtual |
◆ is_external()
bool AP_Compass_Backend::is_external |
( |
uint8_t |
instance | ) |
|
|
protected |
◆ publish_filtered_field()
void AP_Compass_Backend::publish_filtered_field |
( |
const Vector3f & |
mag, |
|
|
uint8_t |
instance |
|
) |
| |
|
protected |
Definition at line 101 of file AP_Compass_Backend.cpp.
Referenced by AP_Compass_HIL::read(), AP_Compass_SITL::read(), AP_Compass_LSM9DS1::read(), AP_Compass_LSM303D::read(), AP_Compass_MAG3110::read(), AP_Compass_BMM150::read(), AP_Compass_MMC3416::read(), AP_Compass_AK8963::read(), AP_Compass_IST8310::read(), AP_Compass_QMC5883L::read(), AP_Compass_LIS3MDL::read(), and AP_Compass_AK09916::read().
◆ publish_raw_field()
void AP_Compass_Backend::publish_raw_field |
( |
const Vector3f & |
mag, |
|
|
uint8_t |
instance |
|
) |
| |
|
protected |
Definition at line 34 of file AP_Compass_Backend.cpp.
Referenced by AP_Compass_SITL::_timer(), AP_Compass_LSM9DS1::_update(), AP_Compass_LSM303D::_update(), AP_Compass_MAG3110::_update(), AP_Compass_BMM150::_update(), AP_Compass_AK8963::_update(), AP_Compass_MMC3416::accumulate_field(), AP_Compass_HIL::read(), AP_Compass_IST8310::timer(), AP_Compass_QMC5883L::timer(), AP_Compass_LIS3MDL::timer(), and AP_Compass_AK09916::timer().
◆ read()
virtual void AP_Compass_Backend::read |
( |
void |
| ) |
|
|
pure virtual |
Implemented in AP_Compass_AK09916, AP_Compass_LIS3MDL, AP_Compass_IST8310, AP_Compass_QMC5883L, AP_Compass_AK8963, AP_Compass_MMC3416, AP_Compass_BMM150, AP_Compass_HMC5843, AP_Compass_MAG3110, AP_Compass_LSM303D, AP_Compass_LSM9DS1, AP_Compass_SITL, AP_Compass_HIL, and AP_Compass_UAVCAN.
Referenced by Compass::read(), and ~AP_Compass_Backend().
◆ register_compass()
uint8_t AP_Compass_Backend::register_compass |
( |
void |
| ) |
const |
|
protected |
Definition at line 121 of file AP_Compass_Backend.cpp.
Referenced by AP_Compass_SITL::AP_Compass_SITL(), AP_Compass_HIL::init(), AP_Compass_LSM9DS1::init(), AP_Compass_LSM303D::init(), AP_Compass_MAG3110::init(), AP_Compass_BMM150::init(), AP_Compass_AK8963::init(), AP_Compass_IST8310::init(), AP_Compass_QMC5883L::init(), AP_Compass_LIS3MDL::init(), AP_Compass_MMC3416::init(), and AP_Compass_AK09916::init().
◆ rotate_field()
void AP_Compass_Backend::rotate_field |
( |
Vector3f & |
mag, |
|
|
uint8_t |
instance |
|
) |
| |
|
protected |
Definition at line 15 of file AP_Compass_Backend.cpp.
Referenced by AP_Compass_SITL::_timer(), AP_Compass_LSM9DS1::_update(), AP_Compass_LSM303D::_update(), AP_Compass_MAG3110::_update(), AP_Compass_BMM150::_update(), AP_Compass_AK8963::_update(), AP_Compass_MMC3416::accumulate_field(), AP_Compass_HIL::read(), AP_Compass_IST8310::timer(), AP_Compass_QMC5883L::timer(), AP_Compass_LIS3MDL::timer(), and AP_Compass_AK09916::timer().
◆ set_dev_id()
void AP_Compass_Backend::set_dev_id |
( |
uint8_t |
instance, |
|
|
uint32_t |
dev_id |
|
) |
| |
|
protected |
◆ set_external()
void AP_Compass_Backend::set_external |
( |
uint8_t |
instance, |
|
|
bool |
external |
|
) |
| |
|
protected |
◆ set_last_update_usec()
void AP_Compass_Backend::set_last_update_usec |
( |
uint32_t |
last_update, |
|
|
uint8_t |
instance |
|
) |
| |
|
protected |
◆ set_rotation()
void AP_Compass_Backend::set_rotation |
( |
uint8_t |
instance, |
|
|
enum Rotation |
rotation |
|
) |
| |
|
protected |
◆ _compass
Compass& AP_Compass_Backend::_compass |
|
protected |
Definition at line 106 of file AP_Compass_Backend.h.
Referenced by AP_Compass_HIL::AP_Compass_HIL(), AP_Compass_SITL::AP_Compass_SITL(), correct_field(), field_ok(), is_external(), publish_filtered_field(), publish_raw_field(), AP_Compass_HIL::read(), register_compass(), rotate_field(), set_dev_id(), set_external(), set_last_update_usec(), and set_rotation().
◆ _error_count
uint32_t AP_Compass_Backend::_error_count |
|
private |
◆ _mean_field_length
float AP_Compass_Backend::_mean_field_length |
|
private |
◆ _sem
Definition at line 109 of file AP_Compass_Backend.h.
Referenced by AP_Compass_SITL::_timer(), AP_Compass_LSM9DS1::_update(), AP_Compass_MAG3110::_update(), AP_Compass_LSM303D::_update(), AP_Compass_BMM150::_update(), AP_Compass_AK8963::_update(), AP_Compass_MMC3416::accumulate_field(), AP_Compass_Backend(), AP_Compass_SITL::read(), AP_Compass_LSM303D::read(), AP_Compass_LSM9DS1::read(), AP_Compass_MAG3110::read(), AP_Compass_BMM150::read(), AP_Compass_MMC3416::read(), AP_Compass_AK8963::read(), AP_Compass_IST8310::read(), AP_Compass_QMC5883L::read(), AP_Compass_LIS3MDL::read(), AP_Compass_AK09916::read(), AP_Compass_IST8310::timer(), AP_Compass_QMC5883L::timer(), AP_Compass_LIS3MDL::timer(), and AP_Compass_AK09916::timer().
The documentation for this class was generated from the following files: