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
nav_catapult.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2012, Christophe De Wagter
3 * Copyright (C) 2016, Gautier Hattenberger <gautier.hattenberger@enac.fr>
4 *
5 * This file is part of paparazzi.
6 *
7 * paparazzi is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
11 *
12 * paparazzi is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with paparazzi; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
20 *
21 */
22
36#ifndef NAV_CATAPULT_H
37#define NAV_CATAPULT_H
38
39#include "std.h"
41
42// Take off state machine
51
52// Internal structure
63
65
66// Init
67extern void nav_catapult_init(void);
68
69// Module Code
70extern void nav_catapult_highrate_module(void);
71
72// Flightplan Code
74
75#endif
76
uint16_t foo
Definition main_demo5.c:58
uint32_t timer
internal timer
nav_catapult_state
@ NAV_CATAPULT_WAIT_ACCEL
@ NAV_CATAPULT_ARMED
@ NAV_CATAPULT_DISARM
@ NAV_CATAPULT_UNINIT
@ NAV_CATAPULT_MOTOR_CLIMB
@ NAV_CATAPULT_MOTOR_ON
enum nav_catapult_state status
current procedure state
float initial_throttle
throttle during first take-off phase (in radian)
bool nav_catapult_run(uint8_t _climb)
float motor_delay
delay to start motor after launch detection (in seconds)
float heading_delay
delay to estimate initial heading after launch (in seconds)
float initial_pitch
pitch angle during first take-off phase (in radian)
struct nav_catapult_struct nav_catapult
void nav_catapult_init(void)
float accel_threshold
acceleration threshold for launch detection (in g)
struct FloatVect3 pos
catapult position
void nav_catapult_highrate_module(void)
Paparazzi floating point algebra.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.