10 #ifndef logger_types_telem_telsee_hpp
11 #define logger_types_telem_telsee_hpp
13 #include "generated/telem_telsee_generated.h"
40 const double & dimm_el,
41 const double & dimm_fwhm_corr,
42 const double & dimm_fwhm_bad,
43 const int & mag1_time,
44 const double & mag1_el,
45 const double & mag1_fwhm,
46 const double & mag1_fwhm_corr,
47 const int & mag2_time,
48 const double & mag2_el,
49 const double & mag2_fwhm,
50 const double & mag2_fwhm_corr
53 auto fp = CreateTelem_telsee_fb(
builder, dimm_time, dimm_el, dimm_fwhm_corr, dimm_fwhm_bad, mag1_time, mag1_el, mag1_fwhm, mag1_fwhm_corr, mag2_time, mag2_el, mag2_fwhm, mag2_fwhm_corr);
64 return VerifyTelem_telsee_fbBuffer(verifier);
72 static_cast<void>(len);
74 auto fbs = GetTelem_telsee_fb(msgBuffer);
76 std::string
msg =
"[telsee] ";
81 msg += std::to_string(fbs->dimm_time()) +
" ";
84 msg += std::to_string(fbs->dimm_el()) +
" ";
87 msg += std::to_string(fbs->dimm_fwhm_corr()) +
"] ";
92 msg += std::to_string(fbs->mag1_time()) +
" ";
95 msg += std::to_string(fbs->mag1_el()) +
" ";
98 msg += std::to_string(fbs->mag1_fwhm()) +
" ";
101 msg += std::to_string(fbs->mag1_fwhm_corr()) +
"] ";
107 msg += std::to_string(fbs->mag2_time()) +
" ";
110 msg += std::to_string(fbs->mag2_el()) +
" ";
113 msg += std::to_string(fbs->mag2_fwhm()) +
" ";
116 msg += std::to_string(fbs->mag2_fwhm_corr()) +
"] ";
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.
constexpr static 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 int &dimm_time, const double &dimm_el, const double &dimm_fwhm_corr, const double &dimm_fwhm_bad, const int &mag1_time, const double &mag1_el, const double &mag1_fwhm, const double &mag1_fwhm_corr, const int &mag2_time, const double &mag2_el, const double &mag2_fwhm, const double &mag2_fwhm_corr)
Construct from components.
Log entry recording the build-time git state.
static const flatlogs::logPrioT defaultLevel
The default level.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static const flatlogs::eventCodeT eventCode
The event code.
static timespec lastRecord
The time of the last time this log was recorded. Used by the telemetry system.
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Get the message formatte for human consumption.