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

◆ NpsJoystick

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

◆ nps_radio_control_joystick_init()

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:

◆ nps_radio_control_joystick_update()

void nps_radio_control_joystick_update ( void  )

Variable Documentation

◆ nps_joystick