APM:Libraries
|
#include <Compass_learn.h>
Classes | |
struct | sample |
Public Member Functions | |
CompassLearn (AP_AHRS &ahrs, Compass &compass) | |
void | update (void) |
Private Member Functions | |
void | io_timer (void) |
void | process_sample (const struct sample &s) |
Private Attributes | |
const AP_AHRS & | ahrs |
Compass & | compass |
bool | have_earth_field |
Vector3f | predicted_offsets [num_sectors] |
float | errors [num_sectors] |
uint32_t | num_samples |
Vector3f | mag_ef |
AP_HAL::Semaphore * | sem |
Matrix3f | mat |
struct sample | new_sample |
bool | sample_available |
Vector3f | last_field |
Vector3f | best_offsets |
float | best_error |
float | best_yaw_deg |
float | worst_error |
bool | converged |
Static Private Attributes | |
static const uint16_t | num_sectors = 72 |
static const uint32_t | min_field_change = 60 |
Definition at line 9 of file Compass_learn.h.
Definition at line 15 of file Compass_learn.cpp.
|
private |
Definition at line 130 of file Compass_learn.cpp.
Referenced by update().
|
private |
Definition at line 149 of file Compass_learn.cpp.
Referenced by io_timer().
void CompassLearn::update | ( | void | ) |
|
private |
Definition at line 18 of file Compass_learn.h.
Referenced by update().
|
private |
Definition at line 52 of file Compass_learn.h.
Referenced by process_sample(), and update().
|
private |
Definition at line 51 of file Compass_learn.h.
Referenced by process_sample(), and update().
|
private |
Definition at line 53 of file Compass_learn.h.
Referenced by process_sample(), and update().
|
private |
Definition at line 19 of file Compass_learn.h.
Referenced by update().
|
private |
Definition at line 55 of file Compass_learn.h.
Referenced by update().
|
private |
Definition at line 26 of file Compass_learn.h.
Referenced by process_sample(), and update().
|
private |
Definition at line 20 of file Compass_learn.h.
Referenced by update().
|
private |
Definition at line 48 of file Compass_learn.h.
Referenced by update().
|
private |
Definition at line 30 of file Compass_learn.h.
Referenced by process_sample(), and update().
|
private |
Definition at line 44 of file Compass_learn.h.
Referenced by process_sample(), and update().
|
staticprivate |
Definition at line 49 of file Compass_learn.h.
Referenced by update().
|
private |
Definition at line 46 of file Compass_learn.h.
Referenced by io_timer(), and update().
|
private |
Definition at line 27 of file Compass_learn.h.
Referenced by process_sample(), and update().
|
staticprivate |
Definition at line 23 of file Compass_learn.h.
Referenced by process_sample(), and update().
|
private |
Definition at line 25 of file Compass_learn.h.
Referenced by process_sample().
|
private |
Definition at line 47 of file Compass_learn.h.
Referenced by io_timer(), and update().
|
private |
Definition at line 33 of file Compass_learn.h.
Referenced by io_timer(), process_sample(), and update().
|
private |
Definition at line 54 of file Compass_learn.h.
Referenced by process_sample(), and update().