Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ RADIO_CONTROL_DT

#define RADIO_CONTROL_DT   (1./40.)

Definition at line 29 of file nps_radio_control.c.

◆ RADIO_CONTROL_TAKEOFF_TIME

#define RADIO_CONTROL_TAKEOFF_TIME   8

Definition at line 78 of file nps_radio_control.c.

Typedef Documentation

◆ rc_script

typedef void(* rc_script) (double)

Definition at line 60 of file nps_radio_control.c.

Function Documentation

◆ nps_radio_control_available()

◆ nps_radio_control_init()

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::js_dev, NpsRadioControl::next_update, NORC, nps_radio_control, nps_radio_control_joystick_init(), nps_radio_control_spektrum_init(), NpsRadioControl::num_script, SCRIPT, SPEKTRUM, type(), and NpsRadioControl::type.

Referenced by nps_autopilot_init().

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

◆ radio_control_script_ff()

◆ radio_control_script_hover()

void radio_control_script_hover ( double  time)
static

◆ radio_control_script_step_pitch()

void radio_control_script_step_pitch ( double  time)
static

◆ radio_control_script_step_roll()

void radio_control_script_step_roll ( double  time)
static

◆ radio_control_script_step_yaw()

void radio_control_script_step_yaw ( double  time)
static

◆ radio_control_script_takeoff()

void radio_control_script_takeoff ( double  time)
static

Variable Documentation

◆ nps_radio_control

◆ scripts

radio_control_script_step_pitch
static void radio_control_script_step_pitch(double time)
Definition: nps_radio_control.c:154
radio_control_script_step_roll
static void radio_control_script_step_roll(double time)
Definition: nps_radio_control.c:140
radio_control_script_hover
static void radio_control_script_hover(double time)
Definition: nps_radio_control.c:131
radio_control_script_step_yaw
static void radio_control_script_step_yaw(double time)
Definition: nps_radio_control.c:167
radio_control_script_ff
static void radio_control_script_ff(double time)
Definition: nps_radio_control.c:181