Skip to content

new Constants int implementation - #128

Open
Mason-Lam wants to merge 37 commits into
Team3128:devfrom
Mason-Lam:ConstantsInt
Open

new Constants int implementation#128
Mason-Lam wants to merge 37 commits into
Team3128:devfrom
Mason-Lam:ConstantsInt

Conversation

@Mason-Lam

Copy link
Copy Markdown
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
arav-chadha and others added 11 commits October 7, 2022 18:38
Replaced all instances of JoystickButton with Trigger.
POVButtons not changed to triggers yet, will do in another pull request
Co-Authored-By: Teja Yaramada <74982797+teja-yaramada@users.noreply.github.com>
Co-Authored-By: Mason-Lam <97353903+Mason-Lam@users.noreply.github.com>
Co-Authored-By: Arav Chadha <97276472+AravCGitHub@users.noreply.github.com>
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