pioneers / pimulator-js

Portable robotics simulator for the Pioneers in Engineering robotics kit (JavaScript edition)
3 stars 1 forks source link

Redraw objects at next start rather than stop #86

Closed charleshong3 closed 3 years ago

charleshong3 commented 3 years ago

Also clean up some code from the last set of PRs.

Feel free to squash and merge on approval.

charleshong3 commented 3 years ago

Regardless of this PR, teleop and autonomous have different functionality because teleop updates immediately when "Upload Field" is pressed, in this code and the code on master. Autonomous always requires the simulation to end before the field is updated. This PR doesn't make any functionality worse/less consistent as far as I'm aware.

charleshong3 commented 3 years ago

We could make it so that the field doesn't update in the middle of teleop simulations, but that would be a separate issue.