Paparazzi UAS  v7.0_unstable
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, 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

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

Definition at line 69 of file nps_radio_control.c.

Referenced by nps_radio_control_available().