Paparazzi UAS  v6.1.0_stable
Paparazzi is a free software Unmanned Aircraft System.
sys_id_doublet.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  */
35 #ifndef SYS_ID_DOUBLET_H
36 #define SYS_ID_DOUBLET_H
37 
38 #include "paparazzi.h"
39 
40 
41 extern uint8_t doublet_active;
43 
44 extern float doublet_length_s;
45 extern float doublet_extra_waiting_time_s;
46 // Index of doublet axis in ACTIVE_DOUBLET_AXES
47 extern uint8_t doublet_axis;
48 
50 
51 extern void sys_id_doublet_init(void);
52 
53 // If doublet is running, update its values
54 extern void sys_id_doublet_run(void);
55 
56 // Handlers for changing gcs variables
57 extern void sys_id_doublet_activate_handler(uint8_t activate); // Activate the doublet
58 extern void sys_id_doublet_axis_handler(uint8_t axis); // Check if new axis
60 extern uint8_t sys_id_doublet_running(void);
61 // Add the current doublet values to the in_cmd values if motors_on is true
62 extern void sys_id_doublet_add_values(bool motors_on, bool override_on, pprz_t in_cmd[]);
63 
64 #endif // SYS_ID_DOUBLET_H
uint8_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98
sys_id_doublet_running
uint8_t sys_id_doublet_running(void)
Definition: sys_id_doublet.c:103
doublet_active
uint8_t doublet_active
Definition: sys_id_doublet.c:55
doublet_mode_3211
uint8_t doublet_mode_3211
Definition: sys_id_doublet.c:56
paparazzi.h
pprz_t
int16_t pprz_t
Definition: paparazzi.h:6
sys_id_doublet_axis_handler
void sys_id_doublet_axis_handler(uint8_t axis)
Definition: sys_id_doublet.c:118
doublet_axis
uint8_t doublet_axis
Definition: sys_id_doublet.c:58
doublet_amplitude
pprz_t doublet_amplitude
Definition: sys_id_doublet.c:60
doublet_extra_waiting_time_s
float doublet_extra_waiting_time_s
Definition: sys_id_doublet.c:62
sys_id_doublet_activate_handler
void sys_id_doublet_activate_handler(uint8_t activate)
Definition: sys_id_doublet.c:107
mode
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
Definition: sonar_bebop.c:69
sys_id_doublet_add_values
void sys_id_doublet_add_values(bool motors_on, bool override_on, pprz_t in_cmd[])
Definition: sys_id_doublet.c:155
doublet_length_s
float doublet_length_s
Definition: sys_id_doublet.c:61
sys_id_doublet_mod3211_handler
void sys_id_doublet_mod3211_handler(uint8_t mode)
Definition: sys_id_doublet.c:125
sys_id_doublet_init
void sys_id_doublet_init(void)
Definition: sys_id_doublet.c:129
sys_id_doublet_run
void sys_id_doublet_run(void)
Definition: sys_id_doublet.c:141