-
Notifications
You must be signed in to change notification settings - Fork 0
Fix Poses (o-ωq)).oO #189
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
base: main
Are you sure you want to change the base?
Fix Poses (o-ωq)).oO #189
Changes from 3 commits
7ea8eb4
3254b68
f2c4635
1bfb030
1a1a109
3c562d7
68643cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,10 +8,12 @@ | |||||
| import edu.wpi.first.math.geometry.Pose2d; | ||||||
| import edu.wpi.first.math.geometry.Rotation2d; | ||||||
| import edu.wpi.first.math.kinematics.ChassisSpeeds; | ||||||
| import edu.wpi.first.wpilibj.DriverStation; | ||||||
| import edu.wpi.first.wpilibj2.command.Command; | ||||||
| import frc.robot.Constants.PoseDriveGroup; | ||||||
| import frc.robot.Constants.constField; | ||||||
| import frc.robot.Field; | ||||||
| import frc.robot.Robot; | ||||||
|
||||||
| import frc.robot.Robot; |
Copilot
AI
Oct 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the short-circuit logical AND (&&) instead of bitwise AND (&) for booleans to avoid unnecessary evaluation and match Java conventions: return isPoseAligned && DriverStation.isAutonomous();
| return isPoseAligned & DriverStation.isAutonomous(); | |
| return isPoseAligned && DriverStation.isAutonomous(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] To reduce coupling between Constants and your Robot class, prefer WPILib's RobotBase utility: import edu.wpi.first.wpilibj.RobotBase; and use public static final boolean INVERT_ROTATION = !RobotBase.isSimulation();