Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
joystick.h File Reference
#include "std.h"
+ Include dependency graph for joystick.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Joystick
 Joystick structure. More...
 

Functions

void joystick_init (void)
 Init function. More...
 
void joystick_parse (uint8_t *buf)
 JOYSTICK_RAW message parser if valid, send a JOYSTICK ABI message. More...
 

Variables

struct Joystick joystick
 

Detailed Description

Author
Gautier Hattenberger Handle JOYSTICK_RAW messages

Definition in file joystick.h.


Data Structure Documentation

◆ Joystick

struct Joystick

Joystick structure.

Definition at line 34 of file joystick.h.

Data Fields
int32_t pitch pitch command
int32_t roll roll command
int32_t throttle throttle command
int32_t yaw yaw command

Function Documentation

◆ joystick_init()

void joystick_init ( void  )

Init function.

Definition at line 34 of file joystick.c.

References joystick, Joystick::pitch, Joystick::roll, Joystick::throttle, and Joystick::yaw.

◆ joystick_parse()

void joystick_parse ( uint8_t buf)

JOYSTICK_RAW message parser if valid, send a JOYSTICK ABI message.

Definition at line 42 of file joystick.c.

References joystick, JOYSTICK_ID, Joystick::pitch, Joystick::roll, Joystick::throttle, and Joystick::yaw.

Variable Documentation

◆ joystick

struct Joystick joystick

Definition at line 32 of file joystick.c.

Referenced by joystick_init(), and joystick_parse().