#include <AP_Compass_SITL.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 14 of file AP_Compass_SITL.h.
◆ AP_Compass_SITL()
AP_Compass_SITL::AP_Compass_SITL |
( |
Compass & |
compass | ) |
|
◆ _timer()
void AP_Compass_SITL::_timer |
( |
void |
| ) |
|
|
private |
◆ read()
void AP_Compass_SITL::read |
( |
void |
| ) |
|
|
virtual |
◆ _accum_count
uint32_t AP_Compass_SITL::_accum_count |
|
private |
◆ _compass_instance
◆ _has_sample
bool AP_Compass_SITL::_has_sample |
|
private |
◆ _last_sample_time
uint32_t AP_Compass_SITL::_last_sample_time |
|
private |
◆ _mag_accum
◆ _sitl
◆ buffer
◆ buffer_length
const uint8_t AP_Compass_SITL::buffer_length = 50 |
|
staticprivate |
◆ last_store_time
uint32_t AP_Compass_SITL::last_store_time |
|
private |
◆ store_index
uint8_t AP_Compass_SITL::store_index |
|
private |
The documentation for this class was generated from the following files: