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.c File Reference
#include "nps_radio_control.h"
#include "nps_radio_control_spektrum.h"
#include "nps_radio_control_joystick.h"
#include <stdio.h>
+ Include dependency graph for nps_radio_control.c:

Go to the source code of this file.

Macros

#define RADIO_CONTROL_DT   (1./40.)
 
#define RADIO_CONTROL_TAKEOFF_TIME   8
 

Typedefs

typedef void(* rc_script )(double)
 

Functions

void nps_radio_control_init (enum NpsRadioControlType type, int num_script, char *js_dev)
 
static void radio_control_script_takeoff (double time)
 
static void radio_control_script_hover (double time)
 
static void radio_control_script_step_roll (double time)
 
static void radio_control_script_step_pitch (double time)
 
static void radio_control_script_step_yaw (double time)
 
static void radio_control_script_ff (double time)
 
bool nps_radio_control_available (double time)
 

Variables

struct NpsRadioControl nps_radio_control
 
static rc_script scripts []
 

Macro Definition Documentation

#define RADIO_CONTROL_DT   (1./40.)

Definition at line 29 of file nps_radio_control.c.

Referenced by nps_radio_control_available().

#define RADIO_CONTROL_TAKEOFF_TIME   8

Definition at line 78 of file nps_radio_control.c.

Referenced by nps_radio_control_available(), and radio_control_script_ff().

Typedef Documentation

typedef void(* rc_script)(double)

Definition at line 60 of file nps_radio_control.c.

Function Documentation

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

Definition at line 35 of file nps_radio_control.c.

References JOYSTICK, NpsRadioControl::next_update, 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void radio_control_script_hover ( double  time)
static
void radio_control_script_step_pitch ( double  time)
static
void radio_control_script_step_roll ( double  time)
static
void radio_control_script_step_yaw ( double  time)
static
void radio_control_script_takeoff ( double  time)
static

Variable Documentation

rc_script scripts[]
static
Initial value:
= {
}
static void radio_control_script_step_pitch(double time)
static void radio_control_script_hover(double time)
static void radio_control_script_step_roll(double time)
static void radio_control_script_ff(double time)
static void radio_control_script_step_yaw(double time)

Definition at line 69 of file nps_radio_control.c.

Referenced by nps_radio_control_available().