#include <AP_Compass_LSM303D.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
} |
|
void | rotate_field (Vector3f &mag, uint8_t instance) |
|
void | publish_raw_field (const Vector3f &mag, uint8_t instance) |
|
void | correct_field (Vector3f &mag, uint8_t i) |
|
void | publish_filtered_field (const Vector3f &mag, uint8_t instance) |
|
void | set_last_update_usec (uint32_t last_update, uint8_t instance) |
|
uint8_t | register_compass (void) const |
|
void | set_dev_id (uint8_t instance, uint32_t dev_id) |
|
void | set_external (uint8_t instance, bool external) |
|
bool | is_external (uint8_t instance) |
|
void | set_rotation (uint8_t instance, enum Rotation rotation) |
|
bool | field_ok (const Vector3f &field) |
|
uint32_t | get_error_count () const |
|
Compass & | _compass |
|
AP_HAL::Semaphore * | _sem |
|
Definition at line 11 of file AP_Compass_LSM303D.h.
◆ ~AP_Compass_LSM303D()
virtual AP_Compass_LSM303D::~AP_Compass_LSM303D |
( |
| ) |
|
|
inlinevirtual |
◆ AP_Compass_LSM303D()
◆ _block_read()
bool AP_Compass_LSM303D::_block_read |
( |
uint8_t |
reg, |
|
|
uint8_t * |
buf, |
|
|
uint32_t |
size |
|
) |
| |
|
private |
◆ _data_ready()
bool AP_Compass_LSM303D::_data_ready |
( |
| ) |
|
|
private |
◆ _disable_i2c()
void AP_Compass_LSM303D::_disable_i2c |
( |
| ) |
|
|
private |
◆ _hardware_init()
bool AP_Compass_LSM303D::_hardware_init |
( |
| ) |
|
|
private |
◆ _mag_set_range()
bool AP_Compass_LSM303D::_mag_set_range |
( |
uint8_t |
max_ga | ) |
|
|
private |
◆ _mag_set_samplerate()
bool AP_Compass_LSM303D::_mag_set_samplerate |
( |
uint16_t |
frequency | ) |
|
|
private |
◆ _read_sample()
bool AP_Compass_LSM303D::_read_sample |
( |
| ) |
|
|
private |
◆ _register_modify()
void AP_Compass_LSM303D::_register_modify |
( |
uint8_t |
reg, |
|
|
uint8_t |
clearbits, |
|
|
uint8_t |
setbits |
|
) |
| |
|
private |
◆ _register_read()
uint8_t AP_Compass_LSM303D::_register_read |
( |
uint8_t |
reg | ) |
|
|
private |
◆ _register_write()
void AP_Compass_LSM303D::_register_write |
( |
uint8_t |
reg, |
|
|
uint8_t |
val |
|
) |
| |
|
private |
◆ _update()
void AP_Compass_LSM303D::_update |
( |
| ) |
|
|
private |
◆ init()
bool AP_Compass_LSM303D::init |
( |
enum Rotation |
rotation | ) |
|
|
private |
◆ probe()
◆ read()
void AP_Compass_LSM303D::read |
( |
void |
| ) |
|
|
overridevirtual |
◆ _accum_count
uint8_t AP_Compass_LSM303D::_accum_count |
|
private |
◆ _compass_instance
uint8_t AP_Compass_LSM303D::_compass_instance |
|
private |
◆ _dev
◆ _drdy_pin_m
◆ _initialised
bool AP_Compass_LSM303D::_initialised |
|
private |
◆ _mag_range_ga
uint8_t AP_Compass_LSM303D::_mag_range_ga |
|
private |
◆ _mag_range_scale
float AP_Compass_LSM303D::_mag_range_scale |
|
private |
◆ _mag_samplerate
uint8_t AP_Compass_LSM303D::_mag_samplerate |
|
private |
◆ _mag_x
int16_t AP_Compass_LSM303D::_mag_x |
|
private |
◆ _mag_x_accum
float AP_Compass_LSM303D::_mag_x_accum |
|
private |
◆ _mag_y
int16_t AP_Compass_LSM303D::_mag_y |
|
private |
◆ _mag_y_accum
float AP_Compass_LSM303D::_mag_y_accum |
|
private |
◆ _mag_z
int16_t AP_Compass_LSM303D::_mag_z |
|
private |
◆ _mag_z_accum
float AP_Compass_LSM303D::_mag_z_accum |
|
private |
◆ _reg7_expected
uint8_t AP_Compass_LSM303D::_reg7_expected |
|
private |
◆ name
constexpr const char* AP_Compass_LSM303D::name = "LSM303D" |
|
static |
The documentation for this class was generated from the following files: