10#ifndef logger_types_telem_fgtimings_hpp
11#define logger_types_telem_fgtimings_hpp
43 const double & mawtime,
44 const double & mawtime_jitter
66 static_cast<void>(len);
72 std::string msg =
"[fgtimes]";
76 snprintf(buf,
sizeof(buf),
"%0.10e", fbs->atime());
79 snprintf(buf,
sizeof(buf),
"%0.5e", fbs->atime_jitter());
84 snprintf(buf,
sizeof(buf),
"%0.10e", fbs->wtime());
87 snprintf(buf,
sizeof(buf),
"%0.5e", fbs->wtime_jitter());
92 snprintf(buf,
sizeof(buf),
"%0.10e", fbs->wmatime());
95 snprintf(buf,
sizeof(buf),
"%0.5e", fbs->wmatime_jitter());
102 static double atime(
void * msgBuffer )
111 return fbs->atime_jitter();
114 static double wtime(
void * msgBuffer )
123 return fbs->wtime_jitter();
129 return fbs->wmatime();
135 return fbs->wmatime_jitter();
154 std::cerr <<
"No member " << member <<
" in telem_fgtimings\n";
The MagAO-X logger flatbuffer log base type.
uint16_t eventCodeT
The type of an event code (16-bit unsigned int).
msgLen2T msgLenT
The type used to refer to the message length, regardless of length.
int8_t logPrioT
The type of the log priority code.
static void * messageBuffer(bufferPtrT &logBuffer)
Get the message buffer address.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
static constexpr flatlogs::eventCodeT TELEM_FGTIMINGS
bool VerifyTelem_fgtimings_fbBuffer(::flatbuffers::Verifier &verifier)
inline ::flatbuffers::Offset< Telem_fgtimings_fb > CreateTelem_fgtimings_fb(::flatbuffers::FlatBufferBuilder &_fbb, double atime=0.0, double atime_jitter=0.0, double wtime=0.0, double wtime_jitter=0.0, double wmatime=0.0, double wmatime_jitter=0.0)
const MagAOX::logger::Telem_fgtimings_fb * GetTelem_fgtimings_fb(const void *buf)
static constexpr logPrioT LOG_TELEM
A telemetry recording.
Message type for resolving log messages with a f.b. builder.
flatbuffers::FlatBufferBuilder builder
Base class for logs consisting of a flatbuffer message.
The type of the input message.
messageT(const double &atime, const double &atime_jitter, const double &wtime, const double &wtime_jitter, const double &mawtime, const double &mawtime_jitter)
Construct from components.
Log entry recording framegrabber timings.
static double wtime(void *msgBuffer)
static timespec lastRecord
The timestamp of the last time this log was recorded. Used by the telemetry system.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static double wtime_jitter(void *msgBuffer)
static const flatlogs::eventCodeT eventCode
The event code.
static const flatlogs::logPrioT defaultLevel
The default level.
static double wmatime_jitter(void *msgBuffer)
static double atime_jitter(void *msgBuffer)
static double atime(void *msgBuffer)
static logMetaDetail getAccessor(const std::string &member)
Get the logMetaDetail for a member by name.
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Get the message formatte for human consumption.
static double wmatime(void *msgBuffer)