mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 08:48:05 -06:00
Lots
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user