PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Airspeed sensor calibration routine. More...
#include "airspeed_calibration.h"
#include "calibration_messages.h"
#include "calibration_routines.h"
#include "commander_helper.h"
#include <px4_platform_common/defines.h>
#include <px4_platform_common/posix.h>
#include <px4_platform_common/time.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include <math.h>
#include <drivers/drv_hrt.h>
#include <drivers/drv_airspeed.h>
#include <uORB/topics/differential_pressure.h>
#include <systemlib/mavlink_log.h>
#include <parameters/param.h>
#include <systemlib/err.h>
Go to the source code of this file.
Functions | |
static void | feedback_calibration_failed (orb_advert_t *mavlink_log_pub) |
int | do_airspeed_calibration (orb_advert_t *mavlink_log_pub) |
Variables | |
static const char * | sensor_name = "airspeed" |
Airspeed sensor calibration routine.
Definition in file airspeed_calibration.cpp.
int do_airspeed_calibration | ( | orb_advert_t * | mavlink_log_pub | ) |
Definition at line 67 of file airspeed_calibration.cpp.
References AIRSPEED0_DEVICE_PATH, AIRSPEEDIOCSSCALE, CAL_ERROR_SET_PARAMS_MSG, CAL_QGC_DONE_MSG, CAL_QGC_PROGRESS_MSG, CAL_QGC_STARTED_MSG, calibrate_cancel_check(), calibrate_cancel_subscribe(), calibrate_cancel_unsubscribe(), calibration_log_critical, calibration_log_info, differential_pressure_s::differential_pressure_filtered_pa, differential_pressure_s::differential_pressure_raw_pa, differential_pressure_s::error_count, f(), fd, feedback_calibration_failed(), airspeed_scale::offset_pa, orb_copy(), ORB_ID, orb_subscribe(), param_find(), param_get(), param_save_default(), param_set(), px4_close(), px4_ioctl(), px4_open(), px4_poll(), sensor_name, and tune_neutral().
Referenced by commander_low_prio_loop(), and commander_main().
|
static |
Definition at line 61 of file airspeed_calibration.cpp.
References CAL_QGC_FAILED_MSG, calibration_log_critical, and sensor_name.
Referenced by do_airspeed_calibration().
|
static |
Definition at line 59 of file airspeed_calibration.cpp.
Referenced by do_airspeed_calibration(), and feedback_calibration_failed().