Conversation
Quantalabs
self-requested a review
January 27, 2026 02:00
Quantalabs
requested changes
Jan 27, 2026
Quantalabs
left a comment
Collaborator
There was a problem hiding this comment.
TODOs can be ignored for now, they will be implemented with other branches, they are just reminders.
| try { | ||
| lc.setRangingMode(LaserCan.RangingMode.SHORT); | ||
| lc.setRegionOfInterest(new LaserCan.RegionOfInterest(8, 8, 16, 16)); | ||
| lc.setTimingBudget(LaserCan.TimingBudget.TIMING_BUDGET_33MS); |
|
|
||
| public class IndexerConstants { | ||
|
|
||
| public static final int MOTOR_ID = 0; |
Collaborator
There was a problem hiding this comment.
Suggested change
| public static final int MOTOR_ID = 0; | |
| // TODO: Set IDs | |
| public static final int MOTOR_ID = 0; |
| /** command that modifies hasBall, uses getDistanceMm() */ | ||
| private void checkForBall() { | ||
| double x = getDistanceMm(); | ||
| if (x == IndexerConstants.LaserCan_DefaultMeasurement) { |
Collaborator
There was a problem hiding this comment.
Suggested change
| if (x == IndexerConstants.LaserCan_DefaultMeasurement) { | |
| if (x >= IndexerConstants.LaserCan_DefaultMeasurement) { |
| private boolean hasBall; | ||
|
|
||
| /** setup, adding motor and laser */ | ||
| private Indexer() { |
Collaborator
There was a problem hiding this comment.
Add a getInstance method, otherwise nobody can use this code.
| return setSpeed(IndexerConstants.InactiveSpeed); | ||
| } | ||
|
|
||
| /** command to sense distance from camera; used to sense if bol */ |
Collaborator
There was a problem hiding this comment.
Suggested change
| /** command to sense distance from camera; used to sense if bol */ | |
| /** command to sense distance from LaserCAN; used to sense if bol */ |
| double x = getDistanceMm(); | ||
| if (x == IndexerConstants.LaserCan_DefaultMeasurement) { | ||
| hasBall = false; | ||
| } else { |
Collaborator
There was a problem hiding this comment.
Suggested change
| } else { | |
| } else if (x != -1) { |
shooter ready or not
* Remove entire robot/lib/swerve folder and replace all references with subsystem/ctre/CtreDriveConstants * Remove WheelTracker, Pigeon, SwerveModule, and TalonFxManager from codebase. * Deprecate RobotState, CancoderManager, AutoPilotCommand and SnapCommand etc * Deprecate limelight-based vision localization code * Deprecated robot/lib/drivers folder and its classes (CanDeviceId and Phoenix6Util) * reformat to prepare for sysID tuning * feat: automode scaffolding and PIDV, validation on first complex path on the field. * fix: pid to pose * tested snap and it work :D * minor refactor * refactor of the refactor * feat: sysid tuning for drive-motors, verified on robot. * finetuning steer-drive coupling ratio * Merged from 2025RobotTest * Trajectory update soon * i think later though * minor change * FEAT: SysID Rotation routine and logs * feat: enable VisualVM to debug RAM issues * feat: add steer motor offsets of the 2nd bot * feat: add radialDeadband to fix yaw impulse when driver releases stick * fix kCoupleRatio value for steer/drive coupling * Pid to pose borke again * Fixed PIDToPose * last few bugs trust * aarush's test branch * added controller --------- Co-authored-by: dcao6668 <dcao6668@gmail.com> Co-authored-by: github-0-0 <tomcao36@gmail.com> Co-authored-by: APandit1-cpu <aarushpandit1@gmail.com>
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.
No description provided.