eschnou/ardrone-webflight

Improve pilot to support multiple key-press

eschnou opened this issue · 2 comments

In the current pilot plugin, as soon as a key is released, the drone stops. This is due to a limitation in the jquery keydown methods used. I would like to fix this to enable piloting with multiple keys at the same time.

Idea: search for some tutorials on JS gaming, since gameplays ideas for keyboard games in JS would apply here as well.

@Philmod Great find! This seems indeed the right way to do it. Only thing a bit more tricky in our case is to also keep track of the velocity increase, and the velocity will be per key.