Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Sep 14, 2023
1 parent 4be2a0f commit c20a7a0
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import edu.wpi.first.wpilibj.simulation.EncoderSim;
import edu.wpi.first.wpilibj.smartdashboard.Field2d;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import java.io.IOException;

/** Represents a differential drive style drivetrain. */
public class Drivetrain {
Expand Down Expand Up @@ -130,13 +129,7 @@ public Drivetrain(DoubleArrayTopic cameraToObjectTopic) {

m_cameraToObjectEntry = cameraToObjectTopic.getEntry(m_defaultVal);

try {
m_objectInField =
AprilTagFields.k2022RapidReact.loadAprilTagLayoutField().getTagPose(0).get();
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException();
}
m_objectInField = AprilTagFields.k2022RapidReact.loadAprilTagLayoutField().getTagPose(0).get();

SmartDashboard.putData("Field", m_fieldSim);
SmartDashboard.putData("FieldEstimation", m_fieldApproximation);
Expand Down

0 comments on commit c20a7a0

Please sign in to comment.