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
parachute.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 Ewoud Smeur <e.j.j.smeur@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
26#ifndef PARACHUTE_H
27#define PARACHUTE_H
28
29#include "std.h"
30
36
37struct Parachute {
38 enum arming_method_t arming_method; // arming override
39 bool armed; // parachute arming state
40 bool deploy; // depoly state
41};
42
43extern struct Parachute parachute;
44
45extern void init_parachute(void);
46extern void periodic_parachute(void);
47
48#endif // PARACHUTE_H
bool deploy
Definition parachute.h:40
void init_parachute(void)
Definition parachute.c:59
enum arming_method_t arming_method
Definition parachute.h:38
struct Parachute parachute
Definition parachute.c:43
arming_method_t
Definition parachute.h:31
@ ON
ALWAYS ARMED.
Definition parachute.h:34
@ OFF
ARMING OVERRIDE OFF.
Definition parachute.h:32
@ AUTO
AUTOMATIC ARMING.
Definition parachute.h:33
void periodic_parachute(void)
Definition parachute.c:71
bool armed
Definition parachute.h:39