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

new Constants int implementation #128

Open
wants to merge 37 commits into
base: dev
Choose a base branch
from

Conversation

Mason-Lam
Copy link
Contributor

Allows NarwhalDashboard to change any existing constant(that's a boolean, or Number).

Mason-Lam and others added 15 commits June 15, 2022 19:08
Changed the class so you don't have to retype every constant into the class, (if anyone can figure out how to stop constant folding of final variables(in a good way because there is a method but I don't like it), that would be great).
Rewriting the ConstantsInt class
just update constants directly
Edit Constants class directly
Fix Constant Folding so you can just change constants.
changes based on Sohan's feedback
Added it so narwhaldashboard isn't flooded with Constants.
Only NarwhalDashboard can edit constants.
Mason-Lam and others added 2 commits June 27, 2022 20:14
Throws the correct exception so you actually know what's wrong.
Mason-Lam and others added 9 commits June 28, 2022 17:24
Check if field is final before trying to modify it.
Take a sledgehammer and make every method synchronized because I do not feel like learning how multi-threading works so make everything thread safe. A perfect solution. 50% chance this gets reverted. Although the next solution is just make every variable volatile and I don't know where I'm going with this description.
NarhwalDashboard is now the only class that can access ConstantsInt in a meaningful way(HOPEFULLY).
@mika-okamoto mika-okamoto added the ready for testing ready to test on the robot label Sep 8, 2022
@mika-okamoto mika-okamoto added the git fixes required Requires git fixes before merging - something is wrong with merging or commit log label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
git fixes required Requires git fixes before merging - something is wrong with merging or commit log ready for testing ready to test on the robot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants