Skip to content

Various Red v.s. Blue Alliance Cleanups and Fixes#87

Merged
martincarapia merged 1 commit intosnidercs:mainfrom
mfisher31:red-vs-blue-fixups
Mar 6, 2025
Merged

Various Red v.s. Blue Alliance Cleanups and Fixes#87
martincarapia merged 1 commit intosnidercs:mainfrom
mfisher31:red-vs-blue-fixups

Conversation

@mfisher31
Copy link
Copy Markdown
Contributor

  • py: re-bind controller every time teleop init'd to update alliance
  • py: really lazy load controller bindings.
  • py: telemetry registration now happens outside of button bindings
  • py: reset heading automatically every time teleop is init'd
  • py: fixup code style.

Closes #84

* py: re-bind controller every time to update alliance
* py: really lazy load controller bindings.
* py: telemetry registration happens outside of button bindings
* py: reset heading automatically every time teleop is init'd
* py: fixup code style.
@mfisher31 mfisher31 requested a review from martincarapia March 6, 2025 09:23
@mfisher31
Copy link
Copy Markdown
Contributor Author

Hey @martincarapia by all means review my work in detail just as I would yours. 👍

@mfisher31 mfisher31 moved this to Review in Lafayette Mar 6, 2025
Comment thread pybot/robotcontainer.py
self._joystick = commands2.button.CommandXboxController (0)

# Cache the multiplier
self._driveMultiplier = -1.0 if self.isRedAlliance() else 1.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lol I like this, nice

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks. It saves us a few function calls in the real-time thread. 👍

Copy link
Copy Markdown
Member

@martincarapia martincarapia left a comment

Choose a reason for hiding this comment

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

I like it, looks super good

@martincarapia martincarapia merged commit 3a9ad0e into snidercs:main Mar 6, 2025
1 check passed
@mfisher31 mfisher31 moved this from Review to Done in Lafayette Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Red vs Blue Alliance Checks Needed

2 participants