Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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
31
enum
arming_method_t
{
32
OFF
,
33
AUTO
,
34
ON
,
35
};
36
37
struct
Parachute
{
38
enum
arming_method_t
arming_method
;
// arming override
39
bool
armed
;
// parachute arming state
40
bool
deploy
;
// depoly state
41
};
42
43
extern
struct
Parachute
parachute
;
44
45
extern
void
init_parachute
(
void
);
46
extern
void
periodic_parachute
(
void
);
47
48
#endif
// PARACHUTE_H
Parachute::deploy
bool deploy
Definition:
parachute.h:40
init_parachute
void init_parachute(void)
Definition:
parachute.c:59
Parachute::arming_method
enum arming_method_t arming_method
Definition:
parachute.h:38
parachute
struct Parachute parachute
Definition:
parachute.c:43
arming_method_t
arming_method_t
Definition:
parachute.h:31
ON
@ ON
ALWAYS ARMED.
Definition:
parachute.h:34
OFF
@ OFF
ARMING OVERRIDE OFF.
Definition:
parachute.h:32
AUTO
@ AUTO
AUTOMATIC ARMING.
Definition:
parachute.h:33
periodic_parachute
void periodic_parachute(void)
Definition:
parachute.c:71
Parachute::armed
bool armed
Definition:
parachute.h:39
Parachute
Definition:
parachute.h:37
std.h
sw
airborne
modules
safety
parachute.h
Generated on Fri Nov 8 2024 14:10:47 for Paparazzi UAS by
1.9.1