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

Cleanup and make more robust #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Cleanup and make more robust #3

wants to merge 1 commit into from

Conversation

rwlee
Copy link
Contributor

@rwlee rwlee commented Oct 20, 2023

In response to 08e8fae and after a git mishap (feature branching is a must).

Formatting changes due to auto formatter -- highly recommend merging #1.

Alliance vs. string (faster comparison)
ternary (boolean ? A : B) is an inline if/else (if(boolean) {return A} else {return B}
Allows for changing alliance after boot (you figure out alliance when connecting to field not when code boots)
Maps movement to action correctly (left up down on xbox --> +X on field, etc.)
Rather than raw axis values, uses named functions

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