APM:Libraries
|
#include <AP_AccelCal.h>
Public Member Functions | |
AP_AccelCal () | |
void | start (GCS_MAVLINK *gcs) |
void | cancel () |
void | update () |
accel_cal_status_t | get_status () |
bool | gcs_vehicle_position (float position) |
void | handleMessage (const mavlink_message_t *msg) |
Static Public Member Functions | |
static void | register_client (AP_AccelCal_Client *client) |
Private Member Functions | |
void | success () |
void | fail () |
void | clear () |
void | collect_sample () |
void | update_status () |
bool | check_for_timeout () |
bool | client_active (uint8_t client_num) |
AccelCalibrator * | get_calibrator (uint8_t i) |
void | _printf (const char *,...) |
Private Attributes | |
GCS_MAVLINK * | _gcs |
bool | _use_gcs_snoop |
bool | _waiting_for_mavlink_ack = false |
uint32_t | _last_position_request_ms |
uint8_t | _step |
accel_cal_status_t | _status |
accel_cal_status_t | _last_result |
bool | _started |
bool | _saving |
uint8_t | _num_active_calibrators |
Static Private Attributes | |
static uint8_t | _num_clients = 0 |
static AP_AccelCal_Client * | _clients [AP_ACCELCAL_MAX_NUM_CLIENTS] {} |
Definition at line 10 of file AP_AccelCal.h.
|
inline |
|
private |
Definition at line 379 of file AP_AccelCal.cpp.
Referenced by cancel(), collect_sample(), fail(), success(), and update().
void AP_AccelCal::cancel | ( | ) |
Definition at line 217 of file AP_AccelCal.cpp.
Referenced by AP_InertialSensor::acal_update(), and AP_AccelCal().
|
private |
|
private |
Definition at line 243 of file AP_AccelCal.cpp.
Referenced by cancel(), fail(), and success().
|
private |
Definition at line 351 of file AP_AccelCal.cpp.
Referenced by collect_sample(), and update().
|
private |
Definition at line 261 of file AP_AccelCal.cpp.
Referenced by update().
|
private |
Definition at line 230 of file AP_AccelCal.cpp.
Referenced by update().
bool AP_AccelCal::gcs_vehicle_position | ( | float | position | ) |
Definition at line 367 of file AP_AccelCal.cpp.
Referenced by get_status().
|
private |
Definition at line 297 of file AP_AccelCal.cpp.
Referenced by clear(), collect_sample(), start(), update(), and update_status().
|
inline |
Definition at line 28 of file AP_AccelCal.h.
Referenced by AP_InertialSensor::acal_update().
void AP_AccelCal::handleMessage | ( | const mavlink_message_t * | msg | ) |
Definition at line 356 of file AP_AccelCal.cpp.
Referenced by get_status(), and GCS_MAVLINK::handle_command_ack().
|
static |
Definition at line 282 of file AP_AccelCal.cpp.
Referenced by AP_InertialSensor::AP_InertialSensor(), and get_status().
void AP_AccelCal::start | ( | GCS_MAVLINK * | gcs | ) |
Definition at line 177 of file AP_AccelCal.cpp.
Referenced by GCS_MAVLINK::_handle_command_preflight_calibration(), and AP_AccelCal().
|
private |
Definition at line 204 of file AP_AccelCal.cpp.
Referenced by update().
void AP_AccelCal::update | ( | ) |
Definition at line 28 of file AP_AccelCal.cpp.
Referenced by AP_InertialSensor::acal_update(), and AP_AccelCal().
|
private |
Definition at line 310 of file AP_AccelCal.cpp.
Referenced by AP_AccelCal(), clear(), collect_sample(), start(), and update().
|
staticprivate |
Definition at line 48 of file AP_AccelCal.h.
Referenced by cancel(), client_active(), collect_sample(), fail(), get_calibrator(), register_client(), success(), and update().
|
private |
Definition at line 39 of file AP_AccelCal.h.
|
private |
Definition at line 42 of file AP_AccelCal.h.
|
private |
|
private |
Definition at line 74 of file AP_AccelCal.h.
|
staticprivate |
Definition at line 47 of file AP_AccelCal.h.
Referenced by cancel(), collect_sample(), fail(), get_calibrator(), register_client(), success(), and update().
|
private |
Definition at line 72 of file AP_AccelCal.h.
|
private |
Definition at line 71 of file AP_AccelCal.h.
|
private |
Definition at line 44 of file AP_AccelCal.h.
Referenced by collect_sample(), gcs_vehicle_position(), get_status(), update(), and update_status().
|
private |
Definition at line 43 of file AP_AccelCal.h.
Referenced by clear(), gcs_vehicle_position(), start(), and update().
|
private |
Definition at line 40 of file AP_AccelCal.h.
Referenced by gcs_vehicle_position(), start(), and update().
|
private |
Definition at line 41 of file AP_AccelCal.h.
Referenced by handleMessage(), and update().