Skip to content

Commit

Permalink
removed dashboqrd graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffin9881 committed Mar 21, 2024
1 parent 12bb5e2 commit 80177ce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/java/frc/robot/subsystems/Dashboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
import edu.wpi.first.math.trajectory.Trajectory;
import edu.wpi.first.networktables.GenericEntry;
import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.wpilibj.BuiltInAccelerometer;
import edu.wpi.first.wpilibj.shuffleboard.BuiltInWidgets;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
import edu.wpi.first.wpilibj.shuffleboard.WidgetType;
import edu.wpi.first.wpilibj.smartdashboard.Field2d;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
Expand All @@ -34,7 +32,6 @@ public class Dashboard extends SubsystemBase {
// Tabs
private final ShuffleboardTab driversTab = Shuffleboard.getTab("Drivers");
private final ShuffleboardTab controlsTab = Shuffleboard.getTab("Controls");
private final ShuffleboardTab graphTab = Shuffleboard.getTab("Graph");
private final NetworkTableInstance tableInstance = NetworkTableInstance.getDefault();

// Variables
Expand Down Expand Up @@ -103,11 +100,6 @@ private Dashboard() {
.withPosition(2, 1)
.withSize(4, 3)
.withWidget(BuiltInWidgets.kField);
BuiltInAccelerometer acc = new BuiltInAccelerometer();
graphTab.addDouble("acc", acc::getZ)
.withPosition(0, 0)
.withSize(2, 2)
.withWidget(BuiltInWidgets.kGraph);

PathPlannerLogging.setLogTargetPoseCallback((pose) -> {
field.getObject("target pose").setPose(pose);
Expand Down

0 comments on commit 80177ce

Please sign in to comment.