Class HootTelemetryBackend
java.lang.Object
com.ctre.phoenix6.HootTelemetryBackend
- All Implemented Interfaces:
AutoCloseable, TelemetryBackend
A telemetry backend implementation that saves information to a CTRE hoot file
on disk using the Phoenix 6
SignalLogger.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new hoot telemetry backend.HootTelemetryBackend(String prefix) Creates a new hoot telemetry backend.HootTelemetryBackend(String prefix, String path) Creates a new hoot telemetry backend with the target file path. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Create an entry for the given path.voidremoveEntry(String path) Removes an entry for the given path.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TelemetryBackend
ownsBackend, sharesBackendWith
-
Constructor Details
-
HootTelemetryBackend
public HootTelemetryBackend()Creates a new hoot telemetry backend. This immediately starts theSignalLoggerand automatically stops it onceclose()has been called on all instances. This will use the default path documented inSignalLogger.setPath(String). -
HootTelemetryBackend
Creates a new hoot telemetry backend. This immediately starts theSignalLoggerand automatically stops it onceclose()has been called on all instances. This will use the default path documented inSignalLogger.setPath(String).- Parameters:
prefix- Prefix to prepend to all log entry names; defaults empty
-
HootTelemetryBackend
Creates a new hoot telemetry backend with the target file path. This immediately starts theSignalLoggerand automatically stops it onceclose()has been called on all instances.- Parameters:
prefix- Prefix to prepend to all log entry names; defaults emptypath- Folder path for the log files; path must exist
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getEntry
Create an entry for the given path.- Specified by:
getEntryin interfaceTelemetryBackend- Parameters:
path- full name- Returns:
- telemetry entry
-
removeEntry
Removes an entry for the given path.- Specified by:
removeEntryin interfaceTelemetryBackend- Parameters:
path- normalized full name
-