|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include <stdio.h>#include "modules/checks/airspeed_consistency.h"#include "navigation.h"#include "state.h"#include "filters/low_pass_filter.h"#include "generated/modules.h"#include "modules/core/abi.h"#include "modules/datalink/telemetry.h"#include "modules/nav/nav_rotorcraft_base.h"Go to the source code of this file.
Macros | |
| #define | AIRSPEED_CONSISTENCY_MIN_SAMPLES 20 |
| #define | AIRSPEED_CONSISTENCY_INTERVAL 10 |
Functions | |
| static void | save_speeds (void) |
| static void | reset_speeds (void) |
| static enum CircFitStatus_t | get_circle_from_speeds (struct circle_t *c, float *N, float *E) |
| void | airspeed_consistency_init (void) |
| void | airspeed_consistency_periodic (void) |
| void | airspeed_consistency_reset (bool reset) |
Variables | |
| bool | asc_reset = false |
| static struct asc_t | asc = {0} |
| static Butterworth2LowPass | tas_filt |
Definition in file airspeed_consistency.c.
| #define AIRSPEED_CONSISTENCY_INTERVAL 10 |
Definition at line 42 of file airspeed_consistency.c.
Referenced by airspeed_consistency_periodic().
| #define AIRSPEED_CONSISTENCY_MIN_SAMPLES 20 |
Definition at line 38 of file airspeed_consistency.c.
Referenced by airspeed_consistency_periodic().
| void airspeed_consistency_init | ( | void | ) |
Definition at line 62 of file airspeed_consistency.c.
References init_butterworth_2_low_pass(), NAVIGATION_FREQUENCY, reset_speeds(), and tas_filt.
| void airspeed_consistency_periodic | ( | void | ) |
Definition at line 68 of file airspeed_consistency.c.
References AIRSPEED_CONSISTENCY_INTERVAL, AIRSPEED_CONSISTENCY_MIN_SAMPLES, ARRIVED_AT_WAYPOINT, asc, CIRC_FIT_OK, DefaultChannel, DefaultDevice, float_vect2_norm(), get_circle_from_speeds(), nav, NAV_HORIZONTAL_MODE_CIRCLE, nav_rotorcraft_base, pprzlog_tp, reset_speeds(), save_speeds(), stateGetPositionEnu_f(), and VECT2_DIFF.
| void airspeed_consistency_reset | ( | bool | reset | ) |
Definition at line 139 of file airspeed_consistency.c.
References reset, and reset_speeds().
|
static |
Definition at line 133 of file airspeed_consistency.c.
References AIRSPEED_CONSISTENCY_BUFFER_SIZE, asc, N, pprz_circfit_wei_float(), and status.
Referenced by airspeed_consistency_periodic().
|
static |
Definition at line 119 of file airspeed_consistency.c.
References AIRSPEED_CONSISTENCY_BUFFER_SIZE, asc, and CIRC_FIT_ERROR.
Referenced by airspeed_consistency_init(), airspeed_consistency_periodic(), and airspeed_consistency_reset().
|
static |
Definition at line 103 of file airspeed_consistency.c.
References air_data, AIRSPEED_CONSISTENCY_BUFFER_SIZE, asc, FloatEulers::psi, stateGetNedToBodyEulers_f(), stateGetSpeedNed_f(), tas_filt, update_butterworth_2_low_pass(), NedCoor_f::x, and NedCoor_f::y.
Referenced by airspeed_consistency_periodic().
|
static |
Definition at line 59 of file airspeed_consistency.c.
Referenced by airspeed_consistency_periodic(), get_circle_from_speeds(), reset_speeds(), and save_speeds().
| bool asc_reset = false |
Definition at line 53 of file airspeed_consistency.c.
|
static |
Definition at line 60 of file airspeed_consistency.c.
Referenced by airspeed_consistency_init(), and save_speeds().