Skip to content

Map circular input region of the joysticks to a square region, improved user interface.#8

Open
eike-welk wants to merge 8 commits intoautorope:masterfrom
eike-welk:2019-03-30-map-circle-to-square-better-interface
Open

Map circular input region of the joysticks to a square region, improved user interface.#8
eike-welk wants to merge 8 commits intoautorope:masterfrom
eike-welk:2019-03-30-map-circle-to-square-better-interface

Conversation

@eike-welk
Copy link
Copy Markdown

  • More conventional command line user interface, and better reporting of possible problems.

  • Maps circular input region of the joysticks to a square region.
    This is necessary to drive tight corners, and fast curves.

  • Expanded user interface on the game controller

    • Separate buttons to start and stop recording.
    • Separate buttons for automatic and manual driving.
    • Interactive scaling for angle and throttle.
  • Better and more complete comments.

  • Various small bug fixes.

Only the device name was converted to lower case, but not the
search term for the input device. Therefore the input device
could not be found by using the default search term, or by its
name as it was displayed in "bluetoothctl".
* Throttle & angle are on different analog sticks. On the old mapping
  full steering could only be applied with zero throttle. (The
  shape of the analog sticks' maximum deflection is a circle.)

* Separate buttons for 'start recording' and 'stop recording'.

* Separate buttons for manual driving mode and automatic driving mode.
  The automatic driving mode button toggles between: 'automatic
  steering' and 'automatic steering and throttle'
Throttle and angle are independent, and therefore need a rectangular
input area. This change maps the 45 degree positions to maximum values
in both channels.

Additionally a variable scaling for the angle was added.
This avoids unexpected acceleration.
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