Skip to content

Improve keyboard and button controls #5

@saasmath

Description

@saasmath

WASD and arrow keys work, but turning still leaves much to be desired.

Based on winter34.html, it is probably best to have separate left and right speeds. Put in new fields like the speed field for these. Then when turning, you can have keys that either add a fixed number or multiply by proportions to change individual speeds. (for example, perhaps the a key will reduce the left wheel by 25 mm/sec or multiply it by .75, etc., or perhaps increase on speed and lower the other.

The code might also want to limit the max speed to 500 or keep the angular velocity limited or the acceleration so the robot does not become unstable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions