mirror of
https://github.com/Team4388/2024AcrossTheRidgebotiverse.git
synced 2026-06-09 08:48:03 -06:00
Add reverse mode
Add reverse mode Add example auto sequential commands TODO: Run with the robot Do math
This commit is contained in:
@@ -53,6 +53,10 @@ public class Limelight extends SubsystemBase {
|
||||
}
|
||||
|
||||
isNearSpeaker = distance <= VisionConstants.SpeakerBubbleDistance;
|
||||
|
||||
SmartDashboard.putBoolean("nearSpeaker", isNearSpeaker);
|
||||
SmartDashboard.putBoolean("Apriltag", isTag);
|
||||
SmartDashboard.putNumber("speakerDistance", distance);
|
||||
}
|
||||
|
||||
public Pose2d getPose() {
|
||||
@@ -69,8 +73,6 @@ public class Limelight extends SubsystemBase {
|
||||
|
||||
isTag = NetworkTableInstance.getDefault().getTable("limelight").getEntry("tv").getBoolean(false);
|
||||
double[] newPose = NetworkTableInstance.getDefault().getTable("limelight").getEntry("botpose").getDoubleArray(new double[6]);
|
||||
|
||||
SmartDashboard.putBoolean("Apriltag", isTag);
|
||||
|
||||
if(newPose != cameraPose){
|
||||
cameraPose = newPose;
|
||||
|
||||
Reference in New Issue
Block a user