mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Added input and output frame file save routines (#134)
* Added input and output frame file save routines * First pass at review items * Revised logic to not crash on start and pass tests * Updated build.gradle to force line endings. Spotless passes now. * Reverted lineEndings to not force Unix. Gerth needs to fix up his dev pc. Co-authored-by: Banks T <btrout.dhrs@gmail.com>
This commit is contained in:
@@ -358,6 +358,12 @@ public class ConfigManager {
|
||||
return logFile.toPath();
|
||||
}
|
||||
|
||||
public Path getImageSavePath() {
|
||||
var imgFilePath = Path.of(configDirectoryFile.toString(), "imgSaves").toFile();
|
||||
if (!imgFilePath.exists()) imgFilePath.mkdirs();
|
||||
return imgFilePath.toPath();
|
||||
}
|
||||
|
||||
public void requestSave() {
|
||||
logger.trace("Requesting save...");
|
||||
saveRequestTimestamp = System.currentTimeMillis();
|
||||
|
||||
Reference in New Issue
Block a user