42 #ifndef JOYSTICK_PARSING_H__
43 #define JOYSTICK_PARSING_H__
49 #include "stabilisation.h"
52 #define MAX_JOYSTICK_RANGE 0.8
72 button_pressed_t button_16 : 1;
73 button_pressed_t button_15 : 1;
74 button_pressed_t button_14 : 1;
75 button_pressed_t button_13 : 1;
76 button_pressed_t button_12 : 1;
77 button_pressed_t button_11 : 1;
78 button_pressed_t button_10 : 1;
79 button_pressed_t button_9 : 1;
80 button_pressed_t button_8 : 1;
81 button_pressed_t button_7 : 1;
82 button_pressed_t button_6 : 1;
83 button_pressed_t button_5 : 1;
84 button_pressed_t button_4 : 1;
85 button_pressed_t button_3 : 1;
86 button_pressed_t button_2 : 1;
87 button_pressed_t button_1 : 1;
92 button_pressed_t button_16 : 1;
93 button_pressed_t button_15 : 1;
94 button_pressed_t button_14 : 1;
95 button_pressed_t button_13 : 1;
96 button_pressed_t button_12 : 1;
97 button_pressed_t button_11 : 1;
98 button_pressed_t button_10 : 1;
99 button_pressed_t button_9 : 1;
100 button_pressed_t button_8 : 1;
101 button_pressed_t button_7 : 1;
102 button_pressed_t button_6 : 1;
103 button_pressed_t button_5 : 1;
104 button_pressed_t button_4 : 1;
105 button_pressed_t button_3 : 1;
106 button_pressed_t button_2 : 1;
107 button_pressed_t button_1 : 1;
171 void joystick_parsing_button_mask(
joystick_parsing_t* joystick_parsing, uint16_t buttons);
178 #endif // JOYSTICK_PARSING_H__
joystick_button_t buttons
The bit mask of the button pressed.
Definition: joystick_parsing.h:129
The control command typedef.
Definition: stabilisation.h:77
The state structure.
Definition: state.h:79
Joystick Channels.
Definition: joystick_parsing.h:115
state_t * state
The pointer to the state structure.
Definition: joystick_parsing.h:132
The structure for the joystick parsing.
Definition: joystick_parsing.h:127