![]() |
joystick data structure More...
#include <vexspi.h>
Data Fields | |
| char | Ch1 |
| Analog control channel 1. More... | |
| char | Ch2 |
| Analog control channel 2. More... | |
| char | Ch3 |
| Analog control channel 3. More... | |
| char | Ch4 |
| Analog control channel 4. More... | |
| char | acc_y |
| Accelerometer y data. More... | |
| char | acc_x |
| Accelerometer x data. More... | |
| char | acc_z |
| Accelerometer z data - not used. More... | |
| unsigned char | btns [2] |
| data for the 12 buttons More... | |
| unsigned char | res [2] |
| reserved More... | |
joystick data structure
Format of the joystick component of the SPI receive packet The reserved bytes are really used for other purposes but we keep them here in V1.00
| char Ch1 |
Analog control channel 1.
| char Ch2 |
Analog control channel 2.
| char Ch3 |
Analog control channel 3.
| char Ch4 |
Analog control channel 4.
| char acc_y |
Accelerometer y data.
| char acc_x |
Accelerometer x data.
| char acc_z |
Accelerometer z data - not used.
| unsigned char btns[2] |
data for the 12 buttons
| unsigned char res[2] |
reserved