 |
Paparazzi UAS
v6.1.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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] // Number of items in ACTIVE_WAVE_AXES
81 static void send_wave(
struct transport_tx *trans,
struct link_device *
dev){
signed char int8_t
Typedef defining 8 bit char type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
float wave_update(struct wave_t *wave, float current_time_s)
static void send_wave(struct transport_tx *trans, struct link_device *dev)
static pprz_t current_wave_values[WAVE_NB_AXES]
static float get_sys_time_float(void)
Get the time in seconds since startup.
static struct wave_t wave_s
static const struct usb_device_descriptor dev
void wave_init(struct wave_t *wave, float start_time_s, float current_time_s, float frequency_hz, float lag_rad)
void sys_id_wave_frequency_hz_set(float frequency_hz_set)
void sys_id_wave_lag_rad_set(float lag_rad_set)
short int16_t
Typedef defining 16 bit short type.
static void start_wave(void)
static void stop_wave(void)
void sys_id_wave_activate_handler(uint8_t activate)
Architecture independent timing functions.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
static const int8_t ACTIVE_WAVE_AXES[]
void wave_reset(struct wave_t *wave, float current_time_s)
bool wave_is_running(struct wave_t *wave)
void sys_id_wave_add_values(bool motors_on, bool override_on, pprz_t in_cmd[])
void sys_id_wave_init(void)
uint8_t sys_id_wave_running(void)
void sys_id_wave_axis_handler(uint8_t axis)
static void set_current_wave_values(void)
#define DefaultPeriodic
Set default periodic telemetry.
void sys_id_wave_run(void)
Simple first order low pass filter with bilinear transform.