Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
nps_radio_control.h File Reference
#include "std.h"
Include dependency graph for nps_radio_control.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  NpsRadioControl

Macros

#define MODE_SWITCH_MANUAL   -1.0
#define MODE_SWITCH_AUTO1   0.0
#define MODE_SWITCH_AUTO2   1.0

Enumerations

enum  NpsRadioControlType { SCRIPT , JOYSTICK , SPEKTRUM , NORC }

Functions

void nps_radio_control_init (enum NpsRadioControlType type, int num_script, char *js_dev)
bool nps_radio_control_available (double time)

Variables

struct NpsRadioControl nps_radio_control

Data Structure Documentation

◆ NpsRadioControl

struct NpsRadioControl

Definition at line 42 of file nps_radio_control.h.

Data Fields
char * js_dev
double mode
double next_update
int num_script
double pitch
double roll
double throttle
enum NpsRadioControlType type
bool valid
double yaw

Macro Definition Documentation

◆ MODE_SWITCH_AUTO1

#define MODE_SWITCH_AUTO1   0.0

Definition at line 28 of file nps_radio_control.h.

Referenced by nps_radio_control_joystick_update().

◆ MODE_SWITCH_AUTO2

◆ MODE_SWITCH_MANUAL

#define MODE_SWITCH_MANUAL   -1.0

Enumeration Type Documentation

◆ NpsRadioControlType

Enumerator
SCRIPT 
JOYSTICK 
SPEKTRUM 
NORC 

Definition at line 31 of file nps_radio_control.h.

Function Documentation

◆ nps_radio_control_available()

bool nps_radio_control_available ( double time)
extern

Definition at line 81 of file nps_radio_control.c.

References FALSE, JOYSTICK, NORC, nps_joystick, nps_radio_control, nps_radio_control_joystick_update(), RADIO_CONTROL_DT, radio_control_script_takeoff(), RADIO_CONTROL_TAKEOFF_TIME, SCRIPT, scripts, and TRUE.

Referenced by nps_autopilot_run_step().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nps_radio_control_init()

void nps_radio_control_init ( enum NpsRadioControlType type,
int num_script,
char * js_dev )
extern

Definition at line 35 of file nps_radio_control.c.

References JOYSTICK, NpsRadioControl::js_dev, NORC, nps_radio_control, nps_radio_control_joystick_init(), nps_radio_control_spektrum_init(), NpsRadioControl::num_script, SCRIPT, SPEKTRUM, and NpsRadioControl::type.

Referenced by nps_autopilot_init(), and nps_autopilot_init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ nps_radio_control