Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
sys_id_wave.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Alessandro Collicelli
3  *
4  * This file is part of paparazzi
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
34 #ifndef SYS_ID_WAVE_H
35 #define SYS_ID_WAVE_H
36 
37 
38 #include "paparazzi.h"
39 
40 
41 extern uint8_t wave_active;
42 extern uint8_t wave_axis;
43 extern pprz_t wave_amplitude;
44 extern float frequency_hz_;
45 extern float lag_rad_;
46 
48 
49 extern void sys_id_wave_init(void);
50 extern void sys_id_wave_run(void);
51 
52 extern void sys_id_wave_axis_handler(uint8_t axis);
53 extern uint8_t sys_id_wave_running(void);
54 
55 extern void sys_id_wave_frequency_hz_set(float frequency_hz_set);
56 extern void sys_id_wave_lag_rad_set(float lag_rad_set);
57 
58 // handlers for changing in GCS variables
59 extern void sys_id_wave_activate_handler(uint8_t activate);
60 extern void sys_id_wave_add_values(bool motors_on, bool override_on, pprz_t in_cmd[]);
61 
62 #endif // SYS_ID_WAVE_H
int16_t pprz_t
Definition: paparazzi.h:6
float frequency_hz_
Definition: sys_id_wave.c:60
void sys_id_wave_init(void)
Definition: sys_id_wave.c:136
void sys_id_wave_run(void)
Definition: sys_id_wave.c:144
void sys_id_wave_add_values(bool motors_on, bool override_on, pprz_t in_cmd[])
Definition: sys_id_wave.c:159
void sys_id_wave_lag_rad_set(float lag_rad_set)
Definition: sys_id_wave.c:129
uint8_t wave_active
Definition: sys_id_wave.c:57
uint8_t wave_axis
Definition: sys_id_wave.h:47
pprz_t wave_amplitude
Definition: sys_id_wave.c:59
void sys_id_wave_frequency_hz_set(float frequency_hz_set)
Definition: sys_id_wave.c:123
float lag_rad_
Definition: sys_id_wave.c:61
void sys_id_wave_axis_handler(uint8_t axis)
Definition: sys_id_wave.c:110
uint8_t sys_id_wave_running(void)
Definition: sys_id_wave.c:118
void sys_id_wave_activate_handler(uint8_t activate)
Definition: sys_id_wave.c:100
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98