Paparazzi UAS  v5.18.0_stable
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 */
v_ctl_airspeed_pgain
float v_ctl_airspeed_pgain
Definition: energy_ctrl.c:91
v_ctl_auto_throttle_nominal_cruise_throttle
float v_ctl_auto_throttle_nominal_cruise_throttle
Definition: energy_ctrl.c:104
guidance_common.h
v_ctl_auto_pitch_of_airspeed_pgain
float v_ctl_auto_pitch_of_airspeed_pgain
Definition: energy_ctrl.c:111
v_ctl_energy_diff_pgain
float v_ctl_energy_diff_pgain
Definition: energy_ctrl.c:118
ac_char_climb_max
float ac_char_climb_max
Definition: energy_ctrl.c:171
v_ctl_energy_diff_igain
float v_ctl_energy_diff_igain
Definition: energy_ctrl.c:119
v_ctl_auto_pitch_of_airspeed_dgain
float v_ctl_auto_pitch_of_airspeed_dgain
Definition: energy_ctrl.c:113
v_ctl_desired_acceleration
float v_ctl_desired_acceleration
Definition: energy_ctrl.c:101
v_ctl_auto_throttle_climb_throttle_increment
float v_ctl_auto_throttle_climb_throttle_increment
Definition: energy_ctrl.c:106
ac_char_climb_pitch
float ac_char_climb_pitch
Definition: energy_ctrl.c:170
v_ctl_auto_throttle_of_airspeed_igain
float v_ctl_auto_throttle_of_airspeed_igain
Definition: energy_ctrl.c:110
v_ctl_auto_pitch_of_airspeed_igain
float v_ctl_auto_pitch_of_airspeed_igain
Definition: energy_ctrl.c:112
v_ctl_max_acceleration
float v_ctl_max_acceleration
Definition: energy_ctrl.c:95
v_ctl_auto_airspeed_setpoint
float v_ctl_auto_airspeed_setpoint
in meters per second
Definition: energy_ctrl.c:121
ac_char_cruise_throttle
float ac_char_cruise_throttle
Definition: energy_ctrl.c:176
v_ctl_auto_groundspeed_sum_err
float v_ctl_auto_groundspeed_sum_err
Definition: energy_ctrl.c:128
v_ctl_speed_mode
uint8_t v_ctl_speed_mode
Definition: energy_ctrl.c:135
uint8_t
unsigned char uint8_t
Definition: types.h:14
v_ctl_max_climb
float v_ctl_max_climb
Definition: energy_ctrl.c:94
v_ctl_auto_groundspeed_igain
float v_ctl_auto_groundspeed_igain
Definition: energy_ctrl.c:127
v_ctl_auto_groundspeed_pgain
float v_ctl_auto_groundspeed_pgain
Definition: energy_ctrl.c:126
ac_char_cruise_pitch
float ac_char_cruise_pitch
Definition: energy_ctrl.c:177
ac_char_descend_pitch
float ac_char_descend_pitch
Definition: energy_ctrl.c:173
v_ctl_auto_throttle_pitch_of_vz_pgain
float v_ctl_auto_throttle_pitch_of_vz_pgain
Definition: energy_ctrl.c:107
v_ctl_energy_total_igain
float v_ctl_energy_total_igain
Definition: energy_ctrl.c:116
v_ctl_altitude_pgain
float v_ctl_altitude_pgain
Definition: energy_ctrl.c:90
v_ctl_energy_total_pgain
float v_ctl_energy_total_pgain
Definition: energy_ctrl.c:115
v_ctl_auto_throttle_of_airspeed_pgain
float v_ctl_auto_throttle_of_airspeed_pgain
Definition: energy_ctrl.c:109
v_ctl_altitude_setpoint
float v_ctl_altitude_setpoint
in meters above MSL
Definition: energy_ctrl.c:88
v_ctl_auto_throttle_nominal_cruise_pitch
float v_ctl_auto_throttle_nominal_cruise_pitch
Definition: energy_ctrl.c:105
ac_char_descend_max
float ac_char_descend_max
Definition: energy_ctrl.c:174
v_ctl_altitude_pre_climb
float v_ctl_altitude_pre_climb
Path Angle.
Definition: energy_ctrl.c:89