Paparazzi UAS  v7.0_unstable
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 
49 extern uint8_t doublet_mode;
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
int16_t pprz_t
Definition: paparazzi.h:6
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:65
uint8_t doublet_active
uint8_t doublet_mode
void sys_id_doublet_activate_handler(uint8_t activate)
float doublet_extra_waiting_time_s
void sys_id_doublet_add_values(bool motors_on, bool override_on, pprz_t in_cmd[])
void sys_id_doublet_init(void)
float doublet_length_s
void sys_id_doublet_axis_handler(uint8_t axis)
void sys_id_doublet_run(void)
uint8_t doublet_axis
uint8_t sys_id_doublet_running(void)
void sys_id_doublet_mod_handler(uint8_t mode)
pprz_t doublet_amplitude
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98