From ba62b3b19f79658c053f9032bd1b1032278df229 Mon Sep 17 00:00:00 2001 From: Cameron Earle Date: Sat, 10 Feb 2024 10:14:10 -0500 Subject: [PATCH] Update shoot while moving --- .../littletonrobotics/frc2024/RobotState.java | 53 +++++++++++-------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/src/main/java/org/littletonrobotics/frc2024/RobotState.java b/src/main/java/org/littletonrobotics/frc2024/RobotState.java index 8071fb3c..75ade016 100644 --- a/src/main/java/org/littletonrobotics/frc2024/RobotState.java +++ b/src/main/java/org/littletonrobotics/frc2024/RobotState.java @@ -11,10 +11,14 @@ import edu.wpi.first.math.numbers.N1; import edu.wpi.first.math.numbers.N3; import java.util.NoSuchElementException; +import lombok.experimental.ExtensionMethod; import org.littletonrobotics.frc2024.subsystems.drive.DriveConstants; import org.littletonrobotics.frc2024.util.AllianceFlipUtil; +import org.littletonrobotics.frc2024.util.GeomUtil; +import org.littletonrobotics.frc2024.util.LoggedTunableNumber; import org.littletonrobotics.junction.AutoLogOutput; +@ExtensionMethod({GeomUtil.class}) public class RobotState { // Pose Estimation public record OdometryObservation( @@ -25,6 +29,9 @@ public record VisionObservation(Pose2d visionPose, double timestamp, Matrix