Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "nps_radio_control.h"
#include "nps_radio_control_spektrum.h"
#include "nps_radio_control_joystick.h"
#include <stdio.h>
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 [] |
#define RADIO_CONTROL_DT (1./40.) |
Definition at line 29 of file nps_radio_control.c.
#define RADIO_CONTROL_TAKEOFF_TIME 8 |
Definition at line 78 of file nps_radio_control.c.
typedef void(* rc_script) (double) |
Definition at line 60 of file nps_radio_control.c.
bool nps_radio_control_available | ( | double | time | ) |
Definition at line 81 of file nps_radio_control.c.
References FALSE, JOYSTICK, NpsRadioControl::mode, NpsJoystick::mode, NpsRadioControl::next_update, NORC, nps_joystick, nps_radio_control, nps_radio_control_joystick_update(), NpsRadioControl::num_script, NpsRadioControl::pitch, NpsJoystick::pitch, RADIO_CONTROL_DT, radio_control_script_takeoff(), RADIO_CONTROL_TAKEOFF_TIME, NpsRadioControl::roll, NpsJoystick::roll, SCRIPT, scripts, NpsRadioControl::throttle, NpsJoystick::throttle, time, TRUE, NpsRadioControl::type, NpsRadioControl::yaw, and NpsJoystick::yaw.
Referenced by nps_autopilot_run_step().
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().
|
static |
Definition at line 181 of file nps_radio_control.c.
References NpsRadioControl::mode, MODE_SWITCH_AUTO2, nps_radio_control, NpsRadioControl::pitch, RADIO_CONTROL_TAKEOFF_TIME, NpsRadioControl::roll, NpsRadioControl::throttle, and time.
|
static |
Definition at line 131 of file nps_radio_control.c.
References NpsRadioControl::mode, MODE_SWITCH_AUTO2, nps_radio_control, NpsRadioControl::roll, NpsRadioControl::throttle, and NpsRadioControl::yaw.
|
static |
Definition at line 154 of file nps_radio_control.c.
References NpsRadioControl::mode, MODE_SWITCH_AUTO2, nps_radio_control, NpsRadioControl::pitch, NpsRadioControl::roll, NpsRadioControl::throttle, time, and NpsRadioControl::yaw.
|
static |
Definition at line 140 of file nps_radio_control.c.
References NpsRadioControl::mode, MODE_SWITCH_AUTO2, nps_radio_control, NpsRadioControl::roll, NpsRadioControl::throttle, time, and NpsRadioControl::yaw.
|
static |
Definition at line 167 of file nps_radio_control.c.
References NpsRadioControl::mode, MODE_SWITCH_AUTO2, nps_radio_control, NpsRadioControl::pitch, NpsRadioControl::roll, NpsRadioControl::throttle, time, and NpsRadioControl::yaw.
|
static |
Definition at line 115 of file nps_radio_control.c.
References NpsRadioControl::mode, MODE_SWITCH_MANUAL, nps_radio_control, NpsRadioControl::pitch, NpsRadioControl::roll, NpsRadioControl::throttle, time, and NpsRadioControl::yaw.
Referenced by nps_radio_control_available().
struct NpsRadioControl nps_radio_control |
Definition at line 1 of file nps_radio_control.c.
Referenced by handle_frame(), nps_radio_control_available(), nps_radio_control_init(), radio_control_feed(), radio_control_script_ff(), radio_control_script_hover(), radio_control_script_step_pitch(), radio_control_script_step_roll(), radio_control_script_step_yaw(), and radio_control_script_takeoff().
|
static |
Definition at line 69 of file nps_radio_control.c.
Referenced by nps_radio_control_available().