Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
eff_scheduling_nederdrone.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Dennis van Wijngaarden <D.C.vanWijngaarden@tudelft.nl>
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  */
20 
30 #ifndef EFF_SCHEDULING_NEDERDRONE_H
31 #define EFF_SCHEDULING_NEDERDRONE_H
32 
33 #include <stdio.h>
34 #include <stdbool.h>
35 
36 extern void ctrl_eff_scheduling_init(void);
37 extern void ctrl_eff_scheduling_periodic(void);
38 
39 // Functions to schedule switching on and of of tip props on front wing
40 extern float sched_ratio_tip_props;
41 // If pitch lower, pitch props gradually switch off till sched_tip_prop_lower_pitch_limit_deg (1 > sched_ratio_tip_props > 0)
43 // If pitch lower, pitch props switch fully off (sched_ratio_tip_props goes to 0)
45 // Setting to not switch off tip props during forward flight
46 extern bool sched_tip_props_always_on;
47 // Setting to scale the thrust effectiveness
48 extern float thrust_eff_scaling;
49 extern float backwing_thrust_eff_scaling;
50 extern float backwing_pitch_eff_scaling;
51 
52 // Schedule all forward actuators with airspeed instead of only the flaps
53 extern bool all_act_fwd_sched;
54 
55 // trim aerodynamic surfaces with settings
56 extern float trim_elevator;
57 extern float trim_flaps;
58 
59 extern float pref_flaps_factor;
60 
61 #endif // EFF_SCHEDULING_NEDERDRONE_H
float pref_flaps_factor
float sched_tip_prop_upper_pitch_limit_deg
float trim_elevator
bool all_act_fwd_sched
float sched_ratio_tip_props
void ctrl_eff_scheduling_periodic(void)
bool sched_tip_props_always_on
float backwing_thrust_eff_scaling
float thrust_eff_scaling
float trim_flaps
float sched_tip_prop_lower_pitch_limit_deg
float backwing_pitch_eff_scaling
void ctrl_eff_scheduling_init(void)