Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / flight / modules / Stabilization / inc / altitudeloop.h
blobf29709149033a228ba08f6306db9d8db36032026
1 /**
2 ******************************************************************************
3 * @addtogroup OpenPilotModules OpenPilot Modules
4 * @{
5 * @addtogroup StabilizationModule Stabilization Module
6 * @brief altitudeloop mode
7 * @note This file implements the logic for a altitudeloop
8 * @{
10 * @file altitudeloop.h
11 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2014.
12 * @brief Attitude stabilization module.
14 * @see The GNU Public License (GPL) Version 3
16 *****************************************************************************/
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 3 of the License, or
21 * (at your option) any later version.
23 * This program is distributed in the hope that it will be useful, but
24 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
25 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26 * for more details.
28 * You should have received a copy of the GNU General Public License along
29 * with this program; if not, write to the Free Software Foundation, Inc.,
30 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 #ifndef ALTITUDELOOP_H
34 #define ALTITUDELOOP_H
36 typedef enum { ALTITUDEHOLD = 0, ALTITUDEVARIO = 1, DIRECT = 2 } ThrustModeType;
38 void stabilizationAltitudeloopInit();
39 float stabilizationAltitudeHold(float setpoint, ThrustModeType mode, bool reinit);
40 void stabilizationDisableAltitudeHold(void);
42 #endif /* ALTITUDELOOP_H */