Skip to content

Commit 02e6b6d

Browse files
authored
Move metrics subtable to root PV table (#2007)
1 parent af689b6 commit 02e6b6d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

photon-core/src/main/java/org/photonvision/common/dataflow/networktables/NetworkTablesManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public class NetworkTablesManager {
5555

5656
private final NetworkTableInstance ntInstance = NetworkTableInstance.getDefault();
5757
private final String kRootTableName = "/photonvision";
58+
// The coprocessors table should only be used for operations/data related to MAC address
5859
public final String kCoprocTableName = "coprocessors";
5960
private final String kFieldLayoutName = "apriltag_field_layout";
6061
public final NetworkTable kRootTable = ntInstance.getTable(kRootTableName);

photon-core/src/main/java/org/photonvision/common/hardware/metrics/MetricsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class MetricsManager {
4545

4646
ProtobufPublisher<DeviceMetrics> metricPublisher =
4747
NetworkTablesManager.getInstance()
48-
.kCoprocTable
48+
.kRootTable
4949
.getSubTable("/metrics")
5050
.getProtobufTopic(CameraServerJNI.getHostname(), DeviceMetrics.proto)
5151
.publish();

0 commit comments

Comments
 (0)