Move metrics subtable to root PV table (#2007)

This commit is contained in:
Sam Freund
2025-07-22 18:28:48 -05:00
committed by GitHub
parent af689b61d5
commit 02e6b6d3e2
2 changed files with 2 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ public class NetworkTablesManager {
private final NetworkTableInstance ntInstance = NetworkTableInstance.getDefault();
private final String kRootTableName = "/photonvision";
// The coprocessors table should only be used for operations/data related to MAC address
public final String kCoprocTableName = "coprocessors";
private final String kFieldLayoutName = "apriltag_field_layout";
public final NetworkTable kRootTable = ntInstance.getTable(kRootTableName);

View File

@@ -45,7 +45,7 @@ public class MetricsManager {
ProtobufPublisher<DeviceMetrics> metricPublisher =
NetworkTablesManager.getInstance()
.kCoprocTable
.kRootTable
.getSubTable("/metrics")
.getProtobufTopic(CameraServerJNI.getHostname(), DeviceMetrics.proto)
.publish();