Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stabilization_adaptive.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2009 ENAC
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
29#ifndef FW_H_CTL_A_H
30#define FW_H_CTL_A_H
31
32#include <inttypes.h>
33#include "std.h"
34#include "paparazzi.h"
35#include "generated/airframe.h"
36
37extern float h_ctl_roll_sum_err;
38extern float h_ctl_pitch_sum_err;
39extern float h_ctl_roll_igain;
40extern float h_ctl_pitch_igain;
41extern float h_ctl_roll_Kffa;
42extern float h_ctl_roll_Kffd;
43extern float h_ctl_pitch_Kffa;
44extern float h_ctl_pitch_Kffd;
45extern float h_ctl_pitch_of_roll;
46
47#if H_CTL_YAW_LOOP
48extern float h_ctl_yaw_dgain;
49extern float h_ctl_yaw_ny_igain;
50#endif
51
52
53#define H_CTL_ROLL_SUM_ERR_MAX (MAX_PPRZ/2.)
54#define H_CTL_PITCH_SUM_ERR_MAX (MAX_PPRZ/2.)
55
56#define stabilization_adaptive_SetRollIGain(_gain) { \
57 h_ctl_roll_sum_err = 0.; \
58 h_ctl_roll_igain = _gain; \
59 }
60
61#define stabilization_adaptive_SetPitchIGain(_gain) { \
62 h_ctl_pitch_sum_err = 0.; \
63 h_ctl_pitch_igain = _gain; \
64 }
65
66extern bool use_airspeed_ratio;
67
68#endif /* FW_H_CTL_A_H */
uint16_t foo
Definition main_demo5.c:58
bool use_airspeed_ratio
float h_ctl_pitch_sum_err
float h_ctl_roll_sum_err
float h_ctl_roll_igain
float h_ctl_pitch_Kffd
float h_ctl_roll_Kffa
float h_ctl_roll_Kffd
float h_ctl_pitch_of_roll
float h_ctl_pitch_igain
float h_ctl_pitch_Kffa