Boomaa23 / open-ds

A reverse-engineered lightweight cross-platform FRC Driver Station
https://boomaa23.github.io/open-ds/
Other
43 stars 8 forks source link

Application fails to launch #5

Closed willtoth closed 3 years ago

willtoth commented 3 years ago

Trying to launch the application I get the following error:

william.toth@william ~ % java -jar Downloads/open-ds-v0.2.0.jar
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
    at com.boomaa.opends.usb.HIDDevice.<init>(HIDDevice.java:29)
    at com.boomaa.opends.usb.Joystick.<init>(Joystick.java:5)
    at com.boomaa.opends.usb.ControlDevices.instantiateHID(ControlDevices.java:49)
    at com.boomaa.opends.usb.ControlDevices.findAll(ControlDevices.java:33)
    at com.boomaa.opends.usb.ControlDevices.init(ControlDevices.java:18)
    at com.boomaa.opends.display.DisplayEndpoint.main(DisplayEndpoint.java:136)

This is with MacOS, using OpenJDK 11

Boomaa23 commented 3 years ago

What USB devices do you have plugged in? I believe the error is an oversight on my part to assume all joystick-type devices are 3-axis but I want to make sure. Try this JAR for now and let me know if it works.

willtoth commented 3 years ago

I'll give it a try. For reference I don't have anything plugged in via USB.

edit That jar does work.

Boomaa23 commented 3 years ago

Alright strange, I'll commit that fix. Thanks!