Tonight I was able to test the full prototype and I have to say that I'm very pleased with the results.
I plugged in the controller and ran kapcom.py and the displays all worked right out of the bat and displayed data from Kerbal Space Program.
The joysticks had a slight problem, the fly-by-wire command wasn't sent. That was a quick fix.
I had some more problems with the mod inputs — I had to rejigger some things internally as well as change the Pin class to allow value inversion. Once these were sorted, those work as expected.
The other LED buttons were a bit harder to diagnose. I had incorrectly wired the pins up so nothing was where I expected it. I had to mess around with the configuration file and invert these buttons too. I also had some unexpected errors from parsing the JSON which were always my fault. In the end I got them working.
The bargraphs are being stubborn, but it's possible the traces are still not working well for those. I'm not going to fret about those until I get the PCBs in.
Some remaining issues:
- The green LEDs in the buttons are dim, I need to reevaluate the resistors I put in
- Need to test the bargraphs and make sure it's the protoboard
- Some of the joysticks are not quite centered. I need to either physically adjust them or recalibrate them in software.
- I cannot exit the program cleanly using ^C or ^D. I would like to be able to do that if at all possible so I can view the program stats.
- Error handling for Telemachus and Arduino disconnects.
All in all, I'm really happy with the testing so far. Definitely have some work left to do to make everything nice and smooth. On a side note, I wrote a quick Python script to check for dependancies and started one to generate configuration files.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.