Skip to content

Commit

Permalink
Add code from laptop in new place
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixmix00 committed Sep 5, 2024
1 parent c1ac7e5 commit 1260cfe
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/com/team766/OrinNetworktables/NetworkTables.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.team766.framework.Orin-Networktables;

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 1260cfe

Please sign in to comment.