APM:Libraries
|
#include <Compass_PerMotor.h>
Public Member Functions | |
Compass_PerMotor (Compass &_compass) | |
bool | enabled (void) const |
void | set_voltage (float _voltage) |
void | calibration_start (void) |
void | calibration_update (void) |
void | calibration_end (void) |
void | compensate (Vector3f &offset) |
Static Public Attributes | |
static const struct AP_Param::GroupInfo | var_info [] |
Private Member Functions | |
float | scaled_output (uint8_t motor) |
Private Attributes | |
Compass & | compass |
AP_Int8 | enable |
AP_Float | expo |
AP_Vector3f | compensation [4] |
Vector3f | base_field |
Vector3f | field_sum [4] |
float | output_sum [4] |
uint16_t | count [4] |
uint32_t | start_ms [4] |
float | voltage |
bool | running |
bool | have_motor_map |
uint8_t | motor_map [4] |
Definition at line 12 of file Compass_PerMotor.h.
Compass_PerMotor::Compass_PerMotor | ( | Compass & | _compass | ) |
void Compass_PerMotor::calibration_end | ( | void | ) |
Definition at line 185 of file Compass_PerMotor.cpp.
Referenced by Compass::per_motor_calibration_end(), and set_voltage().
void Compass_PerMotor::calibration_start | ( | void | ) |
Definition at line 134 of file Compass_PerMotor.cpp.
Referenced by Compass::per_motor_calibration_start(), and set_voltage().
void Compass_PerMotor::calibration_update | ( | void | ) |
Definition at line 156 of file Compass_PerMotor.cpp.
Referenced by Compass::per_motor_calibration_update(), and set_voltage().
void Compass_PerMotor::compensate | ( | Vector3f & | offset | ) |
Definition at line 214 of file Compass_PerMotor.cpp.
Referenced by AP_Compass_Backend::correct_field(), and set_voltage().
|
inline |
Definition at line 18 of file Compass_PerMotor.h.
Referenced by AP_Compass_Backend::correct_field().
|
private |
Definition at line 101 of file Compass_PerMotor.cpp.
Referenced by calibration_update(), and compensate().
|
inline |
Definition at line 22 of file Compass_PerMotor.h.
Referenced by Compass::set_voltage().
|
private |
Definition at line 39 of file Compass_PerMotor.h.
Referenced by calibration_end(), and calibration_start().
|
private |
Definition at line 33 of file Compass_PerMotor.h.
Referenced by calibration_start(), and calibration_update().
|
private |
Definition at line 36 of file Compass_PerMotor.h.
Referenced by calibration_end(), and compensate().
|
private |
Definition at line 48 of file Compass_PerMotor.h.
Referenced by calibration_end(), calibration_start(), and calibration_update().
|
private |
Definition at line 34 of file Compass_PerMotor.h.
Referenced by calibration_end(), and enabled().
|
private |
Definition at line 35 of file Compass_PerMotor.h.
Referenced by scaled_output().
|
private |
Definition at line 42 of file Compass_PerMotor.h.
Referenced by calibration_end(), calibration_start(), and calibration_update().
|
private |
Definition at line 63 of file Compass_PerMotor.h.
Referenced by scaled_output().
|
private |
Definition at line 64 of file Compass_PerMotor.h.
Referenced by scaled_output().
|
private |
Definition at line 45 of file Compass_PerMotor.h.
Referenced by calibration_end(), calibration_start(), and calibration_update().
|
private |
Definition at line 57 of file Compass_PerMotor.h.
Referenced by calibration_end(), calibration_start(), and compensate().
|
private |
Definition at line 51 of file Compass_PerMotor.h.
Referenced by calibration_start(), and calibration_update().
|
static |
Definition at line 14 of file Compass_PerMotor.h.
Referenced by Compass_PerMotor().
|
private |
Definition at line 54 of file Compass_PerMotor.h.
Referenced by scaled_output(), and set_voltage().