Accelerometer Implementation [AARD-1924]#1234
Open
ryanzhangofficial wants to merge 11 commits intodevfrom
Open
Accelerometer Implementation [AARD-1924]#1234ryanzhangofficial wants to merge 11 commits intodevfrom
AARD-1924]#1234ryanzhangofficial wants to merge 11 commits intodevfrom
Conversation
Dhruv-0-Arora
requested changes
Aug 6, 2025
Collaborator
Dhruv-0-Arora
left a comment
There was a problem hiding this comment.
Looks to be still under development [build errors & biome checks]
037a126 to
08dd270
Compare
PepperLola
requested changes
Aug 14, 2025
Member
PepperLola
left a comment
There was a problem hiding this comment.
There looks to be a circular dependency issue between SimAI and SimInput - when I try to run the dev server I get this issue, and the page doesn't load:
SimAI.ts:62 Uncaught ReferenceError: Cannot access 'SimInput' before initialization
at SimAI.ts:62:37
(anonymous) @ SimAI.ts:62
SimAI.ts:62 Uncaught (in promise) ReferenceError: Cannot access 'SimInput' before initialization
at SimAI.ts:62:37
(anonymous) @ SimAI.ts:62
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finish accelerometer implementation for code simulation.
Jira Ticket
Symptom
The accelerometer (ADXL362) for code simulation wasn't fully implemented last year. Using the built in WPILib accelerometer only returns static data.
Solution
Implemented
AccelandADXL362classes usingSimDevice.Verification
Successfully read values by adding the below code to
simulationPeriodicin the JavaSampleRobot.javafile. (Didn't add additional sample code, except modified imports, as part of PR though):double accelX = m_Accel.getX(); double accelY = m_Accel.getY(); double accelZ = m_Accel.getZ(); System.out.println(String.format("Accelerometer - X: %.3f g, Y: %.3f g, Z: %.3f g", accelX, accelY, accelZ));Before merging, ensure the following criteria are met: