Skip to content

Commit

Permalink
Commit code from laptop
Browse files Browse the repository at this point in the history
  • Loading branch information
1yd1a committed Sep 5, 2024
1 parent 99d75b5 commit 7151666
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/com/team766/framework/NetworkTables.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.team766.framework;

import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTable;

public class NetworkTables {
NetworkTableInstance inst = NetworkTableInstance.getDefault();
NetworkTable table = inst.getTable("/SmartDashboard");



public double getData(String request) {
NetworkTableEntry temp = table.getEntry(request);
double value = temp.getDouble(Double.MAX_VALUE);
return value;
}
}

0 comments on commit 7151666

Please sign in to comment.