Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nps_radio_control.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 Antoine Drouin <poinix@gmail.com>
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 
22 #ifndef NPS_RADIO_CONTROL_H
23 #define NPS_RADIO_CONTROL_H
24 
25 #include "std.h"
26 
27 #define MODE_SWITCH_MANUAL -1.0
28 #define MODE_SWITCH_AUTO1 0.0
29 #define MODE_SWITCH_AUTO2 1.0
30 
36 };
37 
39 
40 extern bool nps_radio_control_available(double time);
41 
43  double next_update;
44  bool valid;
45  double throttle;
46  double roll;
47  double pitch;
48  double yaw;
49  double mode;
52  char *js_dev;
53 };
54 
56 
57 
58 #endif /* NPS_RADIO_CONTROL_H */
NpsRadioControlType
struct NpsRadioControl nps_radio_control
void nps_radio_control_init(enum NpsRadioControlType type, int num_script, char *js_dev)
bool nps_radio_control_available(double time)
enum NpsRadioControlType type