Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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::roll
double roll
Definition:
nps_radio_control.h:46
NpsRadioControlType
NpsRadioControlType
Definition:
nps_radio_control.h:31
NpsRadioControl::yaw
double yaw
Definition:
nps_radio_control.h:48
NpsRadioControl::mode
double mode
Definition:
nps_radio_control.h:49
SCRIPT
@ SCRIPT
Definition:
nps_radio_control.h:32
NORC
@ NORC
Definition:
nps_radio_control.h:35
SPEKTRUM
@ SPEKTRUM
Definition:
nps_radio_control.h:34
std.h
NpsRadioControl::next_update
double next_update
Definition:
nps_radio_control.h:43
nps_radio_control
struct NpsRadioControl nps_radio_control
Definition:
nps_radio_control.c:31
NpsRadioControl::pitch
double pitch
Definition:
nps_radio_control.h:47
NpsRadioControl::num_script
int num_script
Definition:
nps_radio_control.h:51
nps_radio_control_init
void nps_radio_control_init(enum NpsRadioControlType type, int num_script, char *js_dev)
Definition:
nps_radio_control.c:35
NpsRadioControl::js_dev
char * js_dev
Definition:
nps_radio_control.h:52
type
timer subsystem type(config options) --------------------------------------------(advanced timers using RCC_APB1) TIM1 adc(if USE_AD_TIM1) radio_control/ppm(if USE_PPM_TIM1
nps_radio_control_available
bool nps_radio_control_available(double time)
Definition:
nps_radio_control.c:81
JOYSTICK
@ JOYSTICK
Definition:
nps_radio_control.h:33
NpsRadioControl::throttle
double throttle
Definition:
nps_radio_control.h:45
NpsRadioControl
Definition:
nps_radio_control.h:42
NpsRadioControl::type
enum NpsRadioControlType type
Definition:
nps_radio_control.h:50
sw
simulator
nps
nps_radio_control.h
Generated on Tue Feb 1 2022 13:51:18 for Paparazzi UAS by
1.8.17