Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
Paparazzi UAS
Style Guides
Onboard Modules
Paparazzi Messages
Paparazzi Technical Primers
Math library
CATIA
Todo List
Bibliography
Modules
Namespace Members
Data Structures
Files
File List
Globals
•
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
31
enum
NpsRadioControlType
{
32
SCRIPT
,
33
JOYSTICK
,
34
SPEKTRUM
,
35
NORC
36
};
37
38
extern
void
nps_radio_control_init
(
enum
NpsRadioControlType
type
,
int
num_script
,
char
*
js_dev
);
39
40
extern
bool
nps_radio_control_available
(
double
time);
41
42
struct
NpsRadioControl
{
43
double
next_update
;
44
bool
valid
;
45
double
throttle
;
46
double
roll
;
47
double
pitch
;
48
double
yaw
;
49
double
mode
;
50
enum
NpsRadioControlType
type
;
51
int
num_script
;
52
char
*
js_dev
;
53
};
54
55
extern
struct
NpsRadioControl
nps_radio_control
;
56
57
58
#endif
/* NPS_RADIO_CONTROL_H */
NpsRadioControl::valid
bool valid
Definition:
nps_radio_control.h:44
NpsRadioControl::yaw
double yaw
Definition:
nps_radio_control.h:48
NpsRadioControlType
NpsRadioControlType
Definition:
nps_radio_control.h:31
NpsRadioControl::roll
double roll
Definition:
nps_radio_control.h:46
NORC
Definition:
nps_radio_control.h:35
nps_radio_control
struct NpsRadioControl nps_radio_control
Definition:
nps_radio_control.c:31
NpsRadioControl::mode
double mode
Definition:
nps_radio_control.h:49
NpsRadioControl::next_update
double next_update
Definition:
nps_radio_control.h:43
NpsRadioControl::pitch
double pitch
Definition:
nps_radio_control.h:47
NpsRadioControl::num_script
int num_script
Definition:
nps_radio_control.h:51
SCRIPT
Definition:
nps_radio_control.h:32
JOYSTICK
Definition:
nps_radio_control.h:33
std.h
nps_radio_control_init
void nps_radio_control_init(enum NpsRadioControlType type, int num_script, char *js_dev)
Definition:
nps_radio_control.c:35
SPEKTRUM
Definition:
nps_radio_control.h:34
NpsRadioControl::js_dev
char * js_dev
Definition:
nps_radio_control.h:52
nps_radio_control_available
bool nps_radio_control_available(double time)
Definition:
nps_radio_control.c:81
NpsRadioControl
Definition:
nps_radio_control.h:42
NpsRadioControl::type
enum NpsRadioControlType type
Definition:
nps_radio_control.h:50
NpsRadioControl::throttle
double throttle
Definition:
nps_radio_control.h:45
sw
simulator
nps
nps_radio_control.h
Generated on Sat Feb 9 2019 06:44:10 for Paparazzi UAS by
1.8.8