[ntcoreffi] Add DataLogManager (#5702)

This is a copy of wpilibc's DataLogManager with shims for the HAL and
wpilibc functionality for LabView use.
This commit is contained in:
Peter Johnson
2023-10-01 13:59:15 -07:00
committed by GitHub
parent aecbcb08fc
commit 48facb9cef
6 changed files with 724 additions and 2 deletions

View File

@@ -71,13 +71,13 @@ static std::string MakeLogDir(std::string_view dir) {
(s.permissions() & fs::perms::others_write) != fs::perms::none) {
return std::string{usbDir};
}
if (frc::RobotBase::GetRuntimeType() == kRoboRIO) {
if (RobotBase::GetRuntimeType() == kRoboRIO) {
FRC_ReportError(warn::Warning,
"DataLogManager: Logging to RoboRIO 1 internal storage is "
"not recommended! Plug in a FAT32 formatted flash drive!");
}
#endif
return frc::filesystem::GetOperatingDirectory();
return filesystem::GetOperatingDirectory();
}
static std::string MakeLogFilename(std::string_view filenameOverride) {