finished up the fitpc pc side joystick reading code
This meant writing a nice OO api for reading joysticks.
It also involved redoing the wire format to fix byte-order problems and
get rid of the need for packing structs.
diff --git a/aos/atom_code/input/input.gyp b/aos/atom_code/input/input.gyp
index 25ef4b9..19d0d2f 100644
--- a/aos/atom_code/input/input.gyp
+++ b/aos/atom_code/input/input.gyp
@@ -1,15 +1,22 @@
{
'targets': [
{
- 'target_name': 'joystick',
+ 'target_name': 'joystick_input',
'type': 'static_library',
'sources': [
- 'JoystickInput.cpp'
+ 'joystick_input.cc',
],
'dependencies': [
+ '<(AOS)/common/input/input.gyp:driver_station_data',
'<(AOS)/common/messages/messages.gyp:aos_queues',
'<(AOS)/common/network/network.gyp:socket',
- ]
+ '<(AOS)/common/common.gyp:common',
+ '<(EXTERNALS):WPILib-NetworkRobotValues',
+ '<(AOS)/build/aos.gyp:logging',
+ ],
+ 'export_dependent_settings': [
+ '<(AOS)/common/input/input.gyp:driver_station_data',
+ ],
},
],
}