mbot-project / mbot_web_app

Webapp visualization for the MBot
0 stars 2 forks source link

Bugfix/drive controls patch #15

Closed JustinBoverhof closed 3 months ago

JustinBoverhof commented 4 months ago

fix to issue #13

The key up event assumed velocity was still equal to the corresponding key down.

This means that if you reverse directions in the way described in the issue it will increment velocity beyond the max.

Added condition to the if statements that prevent the event from over-correcting beyond max velocity.

(I also was not sure which branch to commit to as the dev branch was behind main but I know from reading the docs that it says to commit to dev first)

janapavlasek commented 3 months ago

Hi @JustinBoverhof , can you change this PR to point to the main branch instead?