Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nps_radio_control_joystick.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  NpsJoystick
 

Functions

int nps_radio_control_joystick_init (const char *device)
 Initializes SDL and the joystick. More...
 
void nps_radio_control_joystick_update (void)
 Updates joystick buttons from events, directly reads current axis positions. More...
 

Variables

struct NpsJoystick nps_joystick
 

Data Structure Documentation

struct NpsJoystick

Definition at line 29 of file nps_radio_control_joystick.h.

Data Fields
double mode
double pitch
double roll
double throttle
double yaw

Function Documentation

int nps_radio_control_joystick_init ( const char *  device)

Initializes SDL and the joystick.

Function exits with -1 if fails

Parameters
devicestring integer of desired joystick device
Returns
0 on success

Definition at line 130 of file nps_radio_control_joystick.c.

References JS_NB_AXIS, JS_NB_BUTTONS, NpsJoystick::mode, MODE_SWITCH_AUTO2, nps_joystick, NpsJoystick::pitch, NpsJoystick::roll, sdl_joystick, NpsJoystick::throttle, and NpsJoystick::yaw.

Referenced by nps_radio_control_init().

+ Here is the caller graph for this function:

void nps_radio_control_joystick_update ( void  )

Variable Documentation