Log float values.
More...
#include <wpi/DataLog.h>
|
static constexpr std::string_view | kDataType = "float" |
|
◆ FloatLogEntry() [1/3]
wpi::log::FloatLogEntry::FloatLogEntry |
( |
| ) |
|
|
default |
◆ FloatLogEntry() [2/3]
wpi::log::FloatLogEntry::FloatLogEntry |
( |
DataLog & | log, |
|
|
std::string_view | name, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
◆ FloatLogEntry() [3/3]
wpi::log::FloatLogEntry::FloatLogEntry |
( |
DataLog & | log, |
|
|
std::string_view | name, |
|
|
std::string_view | metadata, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
◆ Append()
void wpi::log::FloatLogEntry::Append |
( |
float | value, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
Appends a record to the log.
- Parameters
-
value | Value to record |
timestamp | Time stamp (may be 0 to indicate now) |
◆ Update()
void wpi::log::FloatLogEntry::Update |
( |
float | value, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
Updates the last value and appends a record to the log if it has changed.
- Note
- The last value is local to this class instance; using Update() with two instances pointing to the same underlying log entry name will likely result in unexpected results.
- Parameters
-
value | Value to record |
timestamp | Time stamp (may be 0 to indicate now) |
◆ kDataType
std::string_view wpi::log::FloatLogEntry::kDataType = "float" |
|
staticconstexpr |
The documentation for this class was generated from the following file: