Close

Full Throttle

A project log for KAPCOM

Yet another hardware controller for Kerbal Space Program. Leveraging Telemachus, Python and Arduino to drive joysticks, buttons and displays

lawnmowerlattelawnmowerlatte 02/12/2015 at 06:090 Comments

I spent the last two nights re-working the Pin class to accommodate the throttle. Originally, I was going to add a dedicated Throttle class, but I realized 90% of the class was already implemented in Pin, so I just added some extra class members, methods and two new format strings and it's working beautifully.

While I was doing that, I ended up changing some other code. I found out about setting default values in the method definition itself. This means that I was able to reduce the number of constructors needed for all of my classes. Much simpler.

Next step is to work on indicator output. I fully expect to hit some resistance here, but that will pave the way for interacting with other outputs.

Discussions