[hal, wpilib] Usage Reporting: QFRCDashboard -> QDash (#8571)

This commit is contained in:
crueter
2026-01-15 21:55:55 -05:00
committed by GitHub
parent 8be7720a68
commit 4e3fdafdb9
6 changed files with 11 additions and 10 deletions

View File

@@ -70,7 +70,7 @@ kDashboard_Shuffleboard = 4
kDashboard_Elastic = 5
kDashboard_LabVIEW = 6
kDashboard_AdvantageScope = 7
kDashboard_QFRCDashboard = 8
kDashboard_QDash = 8
kDashboard_FRCWebComponents = 9
kDataLogLocation_Onboard = 1
kDataLogLocation_USB = 2

View File

@@ -447,8 +447,8 @@ public final class FRCNetComm {
public static final int kDashboard_LabVIEW = 6;
/** kDashboard_AdvantageScope = 7. */
public static final int kDashboard_AdvantageScope = 7;
/** kDashboard_QFRCDashboard = 8. */
public static final int kDashboard_QFRCDashboard = 8;
/** kDashboard_QDash = 8. */
public static final int kDashboard_QDash = 8;
/** kDashboard_FRCWebComponents = 9. */
public static final int kDashboard_FRCWebComponents = 9;
/** kDataLogLocation_Onboard = 1. */

View File

@@ -262,7 +262,7 @@ namespace HALUsageReporting {
kDashboard_Elastic = 5,
kDashboard_LabVIEW = 6,
kDashboard_AdvantageScope = 7,
kDashboard_QFRCDashboard = 8,
kDashboard_QDash = 8,
kDashboard_FRCWebComponents = 9,
kDataLogLocation_Onboard = 1,
kDataLogLocation_USB = 2,

View File

@@ -235,7 +235,7 @@ typedef enum
kDashboard_Elastic = 5,
kDashboard_LabVIEW = 6,
kDashboard_AdvantageScope = 7,
kDashboard_QFRCDashboard = 8,
kDashboard_QDash = 8,
kDashboard_FRCWebComponents = 9,
kDataLogLocation_Onboard = 1,
kDataLogLocation_USB = 2,

View File

@@ -306,10 +306,11 @@ RobotBase::RobotBase() {
HAL_Report(HALUsageReporting::kResourceType_Dashboard,
HALUsageReporting::kDashboard_AdvantageScope);
m_dashboardDetected = true;
} else if (event.GetConnectionInfo()->remote_id.starts_with(
} else if (event.GetConnectionInfo()->remote_id.starts_with("QDash") ||
event.GetConnectionInfo()->remote_id.starts_with(
"QFRCDashboard")) {
HAL_Report(HALUsageReporting::kResourceType_Dashboard,
HALUsageReporting::kDashboard_QFRCDashboard);
HALUsageReporting::kDashboard_QDash);
m_dashboardDetected = true;
} else if (event.GetConnectionInfo()->remote_id.starts_with(
"FRC Web Components")) {

View File

@@ -211,9 +211,9 @@ public abstract class RobotBase implements AutoCloseable {
HAL.report(
tResourceType.kResourceType_Dashboard, tInstances.kDashboard_AdvantageScope);
m_dashboardDetected = true;
} else if (event.connInfo.remote_id.startsWith("QFRCDashboard")) {
HAL.report(
tResourceType.kResourceType_Dashboard, tInstances.kDashboard_QFRCDashboard);
} else if (event.connInfo.remote_id.startsWith("QDash")
|| event.connInfo.remote_id.startsWith("QFRCDashboard")) {
HAL.report(tResourceType.kResourceType_Dashboard, tInstances.kDashboard_QDash);
m_dashboardDetected = true;
} else if (event.connInfo.remote_id.startsWith("FRC Web Components")) {
HAL.report(