Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
energy_ctrl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 TUDelft, Tobias Muench
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, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
28 #ifndef FW_V_CTL_ENERGY_H
29 #define FW_V_CTL_ENERGY_H
30 
32 
33 //To be unified with control NEW, these can be used in a unified flightplan
34 //but ETECS has no use of it ofcourse, speed mode always V_CTL_SPEED_AIRSPEED
35 //FIXME An idea to move it to guidance_common
36 #define V_CTL_SPEED_THROTTLE 0
37 #define V_CTL_SPEED_AIRSPEED 1
38 #define V_CTL_SPEED_GROUNDSPEED 2
39 
41 
42 /* outer loop */
43 // extern float v_ctl_altitude_error; ///< in meters, (setpoint - alt) -> positive = too low
44 extern float v_ctl_altitude_setpoint;
45 extern float v_ctl_altitude_pre_climb;
46 extern float v_ctl_altitude_pgain;
47 extern float v_ctl_airspeed_pgain;
48 
49 extern float v_ctl_auto_airspeed_setpoint;
50 
51 extern float v_ctl_max_climb;
52 extern float v_ctl_max_acceleration;
53 
54 /* "auto throttle" inner loop parameters */
55 extern float v_ctl_desired_acceleration;
56 
61 
67 
68 extern float v_ctl_energy_total_pgain;
69 extern float v_ctl_energy_total_igain;
70 
71 extern float v_ctl_energy_diff_pgain;
72 extern float v_ctl_energy_diff_igain;
73 
74 extern float v_ctl_auto_groundspeed_pgain;
75 extern float v_ctl_auto_groundspeed_igain;
77 
79 // Automatically found airplane characteristics
80 
81 extern float ac_char_climb_pitch;
82 extern float ac_char_climb_max;
83 extern float ac_char_descend_pitch;
84 extern float ac_char_descend_max;
85 extern float ac_char_cruise_throttle;
86 extern float ac_char_cruise_pitch;
87 
88 #endif /* FW_V_CTL_H */
float ac_char_climb_max
Definition: energy_ctrl.c:168
float v_ctl_energy_total_pgain
Definition: energy_ctrl.c:115
float v_ctl_auto_pitch_of_airspeed_igain
Definition: energy_ctrl.c:112
float v_ctl_desired_acceleration
Definition: energy_ctrl.c:101
float v_ctl_auto_groundspeed_sum_err
Definition: energy_ctrl.c:128
float v_ctl_auto_throttle_climb_throttle_increment
Definition: energy_ctrl.c:106
float ac_char_climb_pitch
Definition: energy_ctrl.c:167
float v_ctl_auto_throttle_nominal_cruise_pitch
Definition: energy_ctrl.c:105
float v_ctl_max_climb
Definition: energy_ctrl.c:94
float v_ctl_energy_total_igain
Definition: energy_ctrl.c:116
float v_ctl_auto_groundspeed_igain
Definition: energy_ctrl.c:127
float v_ctl_auto_pitch_of_airspeed_dgain
Definition: energy_ctrl.c:113
float v_ctl_altitude_pgain
Definition: energy_ctrl.c:90
float ac_char_cruise_throttle
Definition: energy_ctrl.c:173
float ac_char_descend_max
Definition: energy_ctrl.c:171
float v_ctl_energy_diff_pgain
Definition: energy_ctrl.c:118
float v_ctl_max_acceleration
Definition: energy_ctrl.c:95
float v_ctl_altitude_setpoint
in meters above MSL
Definition: energy_ctrl.c:88
float ac_char_cruise_pitch
Definition: energy_ctrl.c:174
float v_ctl_auto_throttle_nominal_cruise_throttle
Definition: energy_ctrl.c:104
float v_ctl_auto_throttle_of_airspeed_igain
Definition: energy_ctrl.c:110
uint8_t v_ctl_speed_mode
Definition: energy_ctrl.c:135
float v_ctl_airspeed_pgain
Definition: energy_ctrl.c:91
float v_ctl_auto_throttle_pitch_of_vz_pgain
Definition: energy_ctrl.c:107
float v_ctl_altitude_pre_climb
Path Angle.
Definition: energy_ctrl.c:89
float v_ctl_auto_airspeed_setpoint
in meters per second
Definition: energy_ctrl.c:121
float v_ctl_auto_pitch_of_airspeed_pgain
Definition: energy_ctrl.c:111
float v_ctl_auto_groundspeed_pgain
Definition: energy_ctrl.c:126
float ac_char_descend_pitch
Definition: energy_ctrl.c:170
float v_ctl_auto_throttle_of_airspeed_pgain
Definition: energy_ctrl.c:109
float v_ctl_energy_diff_igain
Definition: energy_ctrl.c:119
Vertical control for fixed wing vehicles.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98