Skip to content

Comments

Added support for joystick inputs for controlling robots#27

Open
featherfeet wants to merge 9 commits intoremotv:masterfrom
featherfeet:master
Open

Added support for joystick inputs for controlling robots#27
featherfeet wants to merge 9 commits intoremotv:masterfrom
featherfeet:master

Conversation

@featherfeet
Copy link

Added support for joystick inputs for controlling robots (currently desktop-only). Renders using an HTML5 canvas and sends commands of the form j_-57_62 where j is the command specified in the robot's JSON and the numbers are X/Y joystick coordinates between -100 and 100.

…esktop-only). Renders using an HTML5 canvas and sends commands of the form `j_-57_62` where j is the command specified in the robot's JSON and the numbers are joystick coordinates between -100 and 100.
…d it to use an SVG instead of a Canvas for rendering, and added touch events so that it works on mobile.
@featherfeet
Copy link
Author

Now refactored to use an SVG for better HiDPI display support. Joystick input is now a separate React Component. Also works on mobile now using touch events.

…he joystick area that fade with time. Also changed joystick commands from X/Y to angle/magnitude.
@featherfeet
Copy link
Author

Joystick input now shows a trail of fading dots to show you where other users are interacting with the joystick (separate colors are used for each of the other users). Joystick commands are now angle/magnitude, not X/Y.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant