Skip to content

Invert controller axes in wheel mode and make speed adjustable - #421

Merged
ihsan314 merged 5 commits into
UBC-Snowbots:masterfrom
ihsan314:controller-fixes
Aug 8, 2022
Merged

ihsan314 merged 5 commits into
UBC-Snowbots:masterfrom
ihsan314:controller-fixes

Conversation

@ihsan314

@ihsan314 ihsan314 commented Aug 6, 2022 •

Copy link
Copy Markdown
Collaborator

Description

Initially moving the left joystick on the pro controller forward/backward would cause the rover to turn, and moving the joystick right/left would move the rover forward and backwards. That has been fixed.

Additionally the rover did not have an adjustable speed at runtime. Now the rover does. One can press the up or down arrows to manipulate the speed.

Testing Done

Experimented on rover to verify correct behaviour.

Resolved Issues

resolves #408

Review Checklist

(Please check every item to indicate your code complies with it (by changing [ ]->[x]). This will hopefully save both you and the reviewer(s) a lot of time!)
It is the reviewers responsibility to also make sure every item here has been covered

  • Start of document comments: each .cpp and .h file should have a comment at the start of it. See files in src/sample_package for examples.
  • Function comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the classes defined in src/sample_package
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue
    Feel free to make additions of things that we should be checking to this file if you think there's something missing!!!!

@ihsan314
ihsan314 requested a review from Roozki August 6, 2022 21:01
Roozki
Roozki previously approved these changes Aug 7, 2022

@Roozki Roozki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No typos found, logic looks good to me

@ihsan314
ihsan314 merged commit 0d5a8dc into UBC-Snowbots:master Aug 8, 2022
ihsan314 added a commit to ihsan314/Snowflake that referenced this pull request Aug 10, 2022
…nowbots#421)

* Swap X & Y axes on left joystick in wheel mode

* Move setup call and use ROS_DEBUG when debug is set to true

* Change speed of rover via arrowbuttons

* Format ProController.cpp

Co-authored-by: TateKolton <tatekolton@gmail.com>
ihsan314 added a commit to ihsan314/Snowflake that referenced this pull request Aug 14, 2022
…nowbots#421)

* Swap X & Y axes on left joystick in wheel mode

* Move setup call and use ROS_DEBUG when debug is set to true

* Change speed of rover via arrowbuttons

* Format ProController.cpp

Co-authored-by: TateKolton <tatekolton@gmail.com>
ihsan314 added a commit to ihsan314/Snowflake that referenced this pull request Aug 15, 2022
…nowbots#421)

* Swap X & Y axes on left joystick in wheel mode

* Move setup call and use ROS_DEBUG when debug is set to true

* Change speed of rover via arrowbuttons

* Format ProController.cpp

Co-authored-by: TateKolton <tatekolton@gmail.com>
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.

Make speed of rover configurable

3 participants