Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robothat auto record on throttle #1055

Merged
merged 4 commits into from
Oct 23, 2022
Merged

Conversation

Ezward
Copy link
Contributor

@Ezward Ezward commented Oct 22, 2022

Address issue #1053

Robothat controller was not updated when we added code to make the game controllers and web controller cooperate. I ported the recording latching code to the robot hat controller.

- port mode and recording latching code from joystick controller
  because auto-record on throttle was not working correctly
  with the robohat MM1.
- when throttle changes then latch the new recording state
- this was copied from joystick controller, but because
  robohat controller does not change mode, it is not needed.
@Ezward Ezward requested a review from sctse999 October 22, 2022 19:07
@Ezward Ezward self-assigned this Oct 22, 2022
@Ezward Ezward requested review from DocGarbanzo and removed request for sctse999 October 22, 2022 19:13
@TCIII
Copy link
Contributor

TCIII commented Oct 22, 2022

@Ezward,

I switched to the robothat-auto-record-on-throttle branch, performed a git pull, completed a donkey createcar --path ~/mycar --overwrite and proceeded to test if AUTO_RECORD_ON_THROTTLE = True would result in waypoints (records) to be recorded when the RC controller throttle initiated forward motion.

Yes, the robothat-auto-record-on-throttle branch does record waypoints when AUTO_RECORD_ON_THROTTLE = True.

It also did not record waypoints (records) when AUTO_RECORD_ON_THROTTLE = False and the RC controller throttle initiated forward motion.

TCIII

Copy link
Contributor

@DocGarbanzo DocGarbanzo left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -149,13 +155,21 @@ def run_threaded(self, img_arr=None, mode=None, recording=None):
"""
self.img_arr = img_arr

#
# enforce defaults if they are not none.
#
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably accidental duplication of comments.

@Ezward Ezward merged commit 2d8dd4b into main Oct 23, 2022
@Ezward Ezward deleted the robothat-auto-record-on-throttle branch October 23, 2022 21:01
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.

3 participants