41 #include "generated/airframe.h"
47 #define WAVE_AXES {COMMAND_ROLL,COMMAND_PITCH,COMMAND_YAW,COMMAND_THRUST}
51 #define WAVE_ENABLED TRUE
64 #define WAVE_NB_AXES sizeof ACTIVE_WAVE_AXES / sizeof ACTIVE_WAVE_AXES[0]
81 static void send_wave(
struct transport_tx *trans,
struct link_device *
dev){
Simple first order low pass filter with bilinear transform.
void wave_reset(struct wave_t *wave, float current_time_s)
float wave_update(struct wave_t *wave, float current_time_s)
bool wave_is_running(struct wave_t *wave)
void wave_init(struct wave_t *wave, float start_time_s, float current_time_s, float frequency_hz, float lag_rad)
static const struct usb_device_descriptor dev
static void stop_wave(void)
static pprz_t current_wave_values[WAVE_NB_AXES]
static void start_wave(void)
static void set_current_wave_values(void)
static void send_wave(struct transport_tx *trans, struct link_device *dev)
static struct wave_t wave_s
void sys_id_wave_init(void)
void sys_id_wave_run(void)
void sys_id_wave_add_values(bool motors_on, bool override_on, pprz_t in_cmd[])
void sys_id_wave_lag_rad_set(float lag_rad_set)
void sys_id_wave_frequency_hz_set(float frequency_hz_set)
void sys_id_wave_axis_handler(uint8_t axis)
uint8_t sys_id_wave_running(void)
void sys_id_wave_activate_handler(uint8_t activate)
static const int8_t ACTIVE_WAVE_AXES[]
Architecture independent timing functions.
static float get_sys_time_float(void)
Get the time in seconds since startup.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.