Hello, I’m actually not very experienced with coding but my friend who wrote this is out of town and i was hoping i could find a solution soon.
So the basic part of the issue is that this code has always been problematic. You can throw a dart at a board of computers and maybe 1 or 2 out of 10 will actually work. Up until last week my hp spectre could run the code and my friends hp pavilion could run it. But my computer did an update (20h1) and now it isn’t working. So i am basically screwed by Microsoft once again.
What im trying to do is use processing to control some esc’s on an arduino through firmata. xbox controller ->laptop ->Aduino->ESC->BLDC motor
This is the problem bit of code.
arduino = new Arduino(this, Arduino.list(), 57600); // finds arduino usb location
Whats happening is what happens when their is no Arduino attached. Regardless of the arduino, usb port, or polling rate i am getting a failed connection and no display of serial communication.
I.E. ArrayIndexOutOfBoundsException: 8
Could not run the sketch (Target VM failed to initialize).
This is a major frustration and i have attempted to use linux but I’m not very experienced and i couldn’t install processing on Ubuntu. I may have to do the unthinkable and get a used mac.