Hacker News new | ask | show | jobs
by crispisulcans 1409 days ago
Not a bad idea, though you would have to use bang-bang control since the thrusters are either full on or full off. I'm not sure if you can integrate anything as is, but when I release the source code you can try to build up from that.
1 comments

Tapping the keys at a certain frequency is the same thing as PWM control, which gives you an duty-cycle-based analog-like control input. PWM is just on_time/(on_time + off_time), so there are a number of ways to do this even with the key input as you have it. Again, in summary: you can do PWM duty-cycle control or tap-frequency-control, which is really just the same thing.