IntegerLogEntry
- class wpiutil.log.IntegerLogEntry(*args, **kwargs)
Bases:
_IntegerLogEntryImplLog integer values.
Overloaded function.
__init__(self: wpiutil._wpiutil.log.IntegerLogEntry, log: wpiutil._wpiutil.log.DataLog, name: str, timestamp: typing.SupportsInt = 0) -> None
__init__(self: wpiutil._wpiutil.log.IntegerLogEntry, log: wpiutil._wpiutil.log.DataLog, name: str, metadata: str, timestamp: typing.SupportsInt = 0) -> None
- append(value: SupportsInt, timestamp: SupportsInt = 0) None
Appends a record to the log.
- Parameters:
value – Value to record
timestamp – Time stamp (may be 0 to indicate now)
- kDataType = 'int64'
- update(value: SupportsInt, timestamp: SupportsInt = 0) None
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)