SylvesterFPS
New member
I am using Teensyduino version 1.62 with an XInputHID interface that I extended in usb_desc.c. Basically, everything works, but I'm encountering confusion regarding latency for an 8000Hz gamepad. When I test just my raw button latency using an external device, I get an average latency of around 108µs, which is correct based on the descriptor. However, if I activate both analog sticks, rotate them quickly in circles, and measure the button latency again, I get a significantly higher button latency. How can this problem be solved without sacrificing speed? I only send my data when the state changes, but with analog sticks, that becomes difficult since there are more than just two states. I don't know how to solve this programmatically—deadzone, averaging, and lower read resolution are not options.
Attachments
-
Gamepad.ino11.4 KB · Views: 30
-
usb.c34.4 KB · Views: 10
-
usb_desc.c171.8 KB · Views: 16
-
usb_desc.h44.4 KB · Views: 35
-
usb_inst.cpp2.6 KB · Views: 11
-
usb_serial.h18.3 KB · Views: 11
-
usb_xinputhid.c4.4 KB · Views: 11
-
usb_xinputhid.h4.3 KB · Views: 35
-
WProgram.h5.2 KB · Views: 13
-
boards.txt95.7 KB · Views: 12