mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Implement frame timestamps and use wpi::Now() for generation.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
#include "llvm/raw_ostream.h"
|
||||
#include "llvm/SmallString.h"
|
||||
#include "support/timestamp.h"
|
||||
|
||||
#include "cameraserver_cpp.h"
|
||||
#include "c_util.h"
|
||||
@@ -561,7 +562,7 @@ void USBCameraImpl::CameraThreadMain() {
|
||||
llvm::StringRef(
|
||||
static_cast<const char*>(m_buffers[buf.index].m_data),
|
||||
static_cast<std::size_t>(buf.bytesused)),
|
||||
Frame::Time{}); // TODO: time
|
||||
wpi::Now()); // TODO: time
|
||||
}
|
||||
|
||||
// Requeue buffer
|
||||
|
||||
Reference in New Issue
Block a user