|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
32 #include "generated/airframe.h"
39 #define CHIRP_AXES {COMMAND_ROLL,COMMAND_PITCH,COMMAND_YAW}
43 #define CHIRP_ENABLED TRUE
46 #ifndef CHIRP_USE_NOISE
47 #define CHIRP_USE_NOISE TRUE
50 #ifndef CHIRP_EXPONENTIAL
51 #define CHIRP_EXPONENTIAL TRUE
55 #define CHIRP_FADEIN TRUE
71 #define CHIRP_NB_AXES sizeof ACTIVE_CHIRP_AXES / sizeof ACTIVE_CHIRP_AXES[0] // Number of items in ACTIVE_CHIRP_AXES
84 float amplitude, noise;
void sys_id_chirp_init(void)
static void start_chirp(void)
bool chirp_is_running(struct chirp_t *chirp, float current_time_s)
Return if the current_time is within the chirp manoeuvre.
void sys_id_chirp_axis_handler(uint8_t axis)
static float get_sys_time_float(void)
Get the time in seconds since startup.
double rand_gaussian(void)
static void init_first_order_low_pass(struct FirstOrderLowPass *filter, float tau, float sample_time, float value)
Init first order low pass filter.
static float update_first_order_low_pass(struct FirstOrderLowPass *filter, float value)
Update first order low pass filter state with a new value.
float chirp_noise_stdv_onaxis_ratio
static void set_current_chirp_values(void)
void chirp_reset(struct chirp_t *chirp, float current_time_s)
Reset the time of the chirp.
static void stop_chirp(void)
void sys_id_chirp_fstart_handler(float fstart)
float chirp_noise_stdv_offaxis
#define CHIRP_EXPONENTIAL
static struct FirstOrderLowPass filters[CHIRP_NB_AXES]
static const struct usb_device_descriptor dev
Architecture independent timing functions.
static const int8_t ACTIVE_CHIRP_AXES[]
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
static pprz_t current_chirp_values[CHIRP_NB_AXES]
void sys_id_chirp_activate_handler(uint8_t activate)
void chirp_init(struct chirp_t *chirp, float f0_hz, float f1_hz, float length_s, float current_time_s, bool exponential_chirp, bool fade_in)
Allocate and initialize a new chirp struct.
static struct chirp_t chirp
static void send_chirp(struct transport_tx *trans, struct link_device *dev)
Initialize with chirp_init.
void sys_id_chirp_run(void)
float current_frequency_hz
void sys_id_chirp_fstop_handler(float fstop)
float chirp_update(struct chirp_t *chirp, float current_time_s)
Calculate the value at current_time_s and update the struct with current frequency and value.
First order low pass filter structure.
#define DefaultPeriodic
Set default periodic telemetry.
void sys_id_chirp_add_values(bool motors_on, bool override_on, pprz_t in_cmd[])
Simple first order low pass filter with bilinear transform.