Package edu.wpi.first.epilogue.logging
Class NTEpilogueBackend
java.lang.Object
edu.wpi.first.epilogue.logging.NTEpilogueBackend
- All Implemented Interfaces:
EpilogueBackend
A backend implementation that sends data over network tables. Be careful when using this, since
sending too much data may cause bandwidth or CPU starvation.
-
Constructor Summary
ConstructorDescriptionCreates a logging backend that sends information to NetworkTables. -
Method Summary
Modifier and TypeMethodDescriptionGets a backend that can be used to log nested data underneath a specific path.void
Logs a boolean data point.void
Logs a boolean array data point.void
Logs a raw byte array data point.void
Logs a 64-bit floating point data point.void
Logs a 64-bit floating point array data point.void
Logs a 32-bit floating point data point.void
Logs a 32-bit floating point array data point.void
Logs a 32-bit integer data point.void
Logs a 32-bit integer array data point.void
Logs a 64-bit integer data point.void
Logs a 64-bit integer array data point.void
Logs a text data point.void
Logs a string array data point.<S> void
Logs an array of struct-serializable objects.<S> void
Logs a struct-serializable object.
-
Constructor Details
-
NTEpilogueBackend
Creates a logging backend that sends information to NetworkTables.- Parameters:
nt
- the NetworkTable instance to use to send data to
-
-
Method Details
-
getNested
Description copied from interface:EpilogueBackend
Gets a backend that can be used to log nested data underneath a specific path.- Specified by:
getNested
in interfaceEpilogueBackend
- Parameters:
path
- the path to use for logging nested data under- Returns:
- the nested backend
-
log
Description copied from interface:EpilogueBackend
Logs a 32-bit integer data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 64-bit integer data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 32-bit floating point data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 64-bit floating point data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a boolean data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a raw byte array data point. NOTE: serializable data should be logged usingEpilogueBackend.log(String, Object, Struct)
.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 32-bit integer array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 64-bit integer array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 32-bit floating point array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 64-bit floating point array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a boolean array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a text data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a string array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a struct-serializable object.- Specified by:
log
in interfaceEpilogueBackend
- Type Parameters:
S
- the serializable type- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data pointstruct
- the struct to use to serialize the data
-
log
Description copied from interface:EpilogueBackend
Logs an array of struct-serializable objects.- Specified by:
log
in interfaceEpilogueBackend
- Type Parameters:
S
- the serializable type- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data pointstruct
- the struct to use to serialize the objects
-