Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
autopilot.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Gautier Hattenberger
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 
30 
33 
34 bool_t launch;
35 
38 
40 
42 float energy;
43 
44 bool_t gps_lost;
45 
46 bool_t power_switch;
47 
48 void autopilot_init(void) {
51  launch = FALSE;
53 
55 
56  gps_lost = FALSE;
57 
59 
60 }
61 
unsigned short uint16_t
Definition: types.h:16
uint16_t vsupply
Supply voltage in deciVolt.
Definition: autopilot.c:41
void autopilot_init(void)
Autopilot inititalization.
Definition: autopilot.c:48
#define LATERAL_MODE_MANUAL
Definition: autopilot.h:74
uint16_t autopilot_flight_time
flight time in seconds.
Definition: autopilot.c:37
uint8_t pprz_mode
Definition: autopilot.c:31
uint8_t lateral_mode
Definition: autopilot.c:39
#define PPRZ_MODE_AUTO2
Definition: autopilot.h:53
#define FALSE
Definition: imu_chimu.h:141
bool_t gps_lost
Definition: autopilot.c:44
bool_t kill_throttle
Definition: autopilot.c:32
float energy
Fuel consumption (mAh) TODO: move to electrical subsystem.
Definition: autopilot.c:42
unsigned char uint8_t
Definition: types.h:14
bool_t launch
Definition: autopilot.c:34
bool_t power_switch
Power switch control.
Definition: autopilot.c:46
Fixedwing autopilot modes.