- shooting while moving corrected (vertical movements)
- reverse indexer before shooting
- defensive positions fixed values
- stalling motors led fixed (except shooter)
This commit is contained in:
mimigamin
2026-03-20 15:40:07 -06:00
parent 4ffbe3f595
commit 69677d5ae9
7 changed files with 268 additions and 132 deletions
@@ -34,7 +34,7 @@ public class StayInPosition extends PID {
//Same here
translationY = 0.2;
}
if (Math.abs(translationX) < 0.01 && Math.abs(translationY) < 0.01) {
if (Math.abs(translationX) < 0.08 && Math.abs(translationY) < 0.08) {
driveTranslation = new Translation2d();
} else {
//TODO: Tweak for best corrector against another bot
@@ -42,8 +42,6 @@ public class StayInPosition extends PID {
}
drive.driveFieldAngleSIP(driveTranslation, targetPose.getRotation());
// If above doesn't work
//drive.driveFieldAngle(driveTranslation, targetPose.getRotation());
}
@Override