Report WPILib version as part of usage reporting (#2199)

This commit is contained in:
Peter Johnson
2019-12-26 22:34:10 -06:00
committed by GitHub
parent 7b952d599d
commit 6008671c30
2 changed files with 3 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ int frc::RunHALInitialization() {
return -1;
}
HAL_Report(HALUsageReporting::kResourceType_Language,
HALUsageReporting::kLanguage_CPlusPlus);
HALUsageReporting::kLanguage_CPlusPlus, 0, GetWPILibVersion());
wpi::outs() << "\n********** Robot program starting **********\n";
return 0;
}

View File

@@ -317,7 +317,8 @@ public abstract class RobotBase implements AutoCloseable {
// Needed because all the OpenCV JNI functions don't have built in loading
CameraServerJNI.enumerateSinks();
HAL.report(tResourceType.kResourceType_Language, tInstances.kLanguage_Java);
HAL.report(tResourceType.kResourceType_Language, tInstances.kLanguage_Java, 0,
WPILibVersion.Version);
if (HAL.hasMain()) {
Thread thread = new Thread(() -> {