|
APM:Libraries
|
#include <AP_Compass_IST8310.h>
Public Member Functions | |
| void | read () override |
Public Member Functions inherited from AP_Compass_Backend | |
| AP_Compass_Backend (Compass &compass) | |
| virtual | ~AP_Compass_Backend (void) |
| virtual void | accumulate (void) |
| virtual void | handle_mag_msg (Vector3f &mag) |
Static Public Member Functions | |
| static AP_Compass_Backend * | probe (Compass &compass, AP_HAL::OwnPtr< AP_HAL::I2CDevice > dev, bool force_external=false, enum Rotation rotation=ROTATION_NONE) |
Static Public Attributes | |
| static constexpr const char * | name = "IST8310" |
Private Member Functions | |
| AP_Compass_IST8310 (Compass &compass, AP_HAL::OwnPtr< AP_HAL::Device > dev, bool force_external, enum Rotation rotation) | |
| void | timer () |
| bool | init () |
| void | start_conversion () |
Private Attributes | |
| AP_HAL::OwnPtr< AP_HAL::Device > | _dev |
| AP_HAL::Device::PeriodicHandle | _periodic_handle |
| AP_HAL::Util::perf_counter_t | _perf_xfer_err |
| AP_HAL::Util::perf_counter_t | _perf_bad_data |
| Vector3f | _accum = Vector3f() |
| uint32_t | _accum_count = 0 |
| enum Rotation | _rotation |
| uint8_t | _instance |
| bool | _ignore_next_sample |
| bool | _force_external |
Additional Inherited Members | |
Public Types inherited from AP_Compass_Backend | |
| 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 } |
Protected Member Functions inherited from AP_Compass_Backend | |
| 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 |
Protected Attributes inherited from AP_Compass_Backend | |
| Compass & | _compass |
| AP_HAL::Semaphore * | _sem |
Definition at line 31 of file AP_Compass_IST8310.h.
|
private |
Definition at line 96 of file AP_Compass_IST8310.cpp.
Referenced by probe().
|
private |
Definition at line 107 of file AP_Compass_IST8310.cpp.
Referenced by probe().
|
static |
Definition at line 78 of file AP_Compass_IST8310.cpp.
Referenced by Compass::_detect_backends().
|
overridevirtual |
Implements AP_Compass_Backend.
Definition at line 256 of file AP_Compass_IST8310.cpp.
|
private |
Definition at line 186 of file AP_Compass_IST8310.cpp.
Referenced by init(), and timer().
|
private |
Definition at line 194 of file AP_Compass_IST8310.cpp.
Referenced by init().
Definition at line 58 of file AP_Compass_IST8310.h.
|
private |
Definition at line 59 of file AP_Compass_IST8310.h.
|
private |
Definition at line 53 of file AP_Compass_IST8310.h.
Referenced by init(), start_conversion(), and timer().
|
private |
Definition at line 64 of file AP_Compass_IST8310.h.
Referenced by init().
|
private |
Definition at line 63 of file AP_Compass_IST8310.h.
Referenced by start_conversion(), and timer().
|
private |
Definition at line 62 of file AP_Compass_IST8310.h.
|
private |
Definition at line 56 of file AP_Compass_IST8310.h.
|
private |
Definition at line 55 of file AP_Compass_IST8310.h.
Referenced by init(), start_conversion(), and timer().
|
private |
Definition at line 54 of file AP_Compass_IST8310.h.
|
private |
Definition at line 61 of file AP_Compass_IST8310.h.
Referenced by init().
|
static |
Definition at line 41 of file AP_Compass_IST8310.h.
Referenced by Compass::_detect_backends(), and init().
1.8.13