10#ifndef logger_types_ocam_temps_hpp
11#define logger_types_ocam_temps_hpp
68 static_cast<void>(len);
72 std::string msg =
"ccd: ";
73 msg += std::to_string(fbs->ccd()) +
" C ";
76 msg += std::to_string(fbs->cpu()) +
" C ";
79 msg += std::to_string(fbs->power()) +
" C ";
82 msg += std::to_string(fbs->bias()) +
" C ";
85 msg += std::to_string(fbs->water()) +
" C ";
88 msg += std::to_string(fbs->left()) +
" C ";
91 msg += std::to_string(fbs->right()) +
" C ";
94 msg += std::to_string(fbs->cooling()) +
" mW ";
100 static float ccd(
void * msgBuffer )
106 static float cpu(
void * msgBuffer )
112 static float power(
void * msgBuffer )
118 static float bias(
void * msgBuffer )
124 static float water(
void * msgBuffer )
130 static float left(
void * msgBuffer )
136 static float right(
void * msgBuffer )
145 return fbs->cooling();
165 std::cerr <<
"No member " << member <<
" in ocam_temps\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 OCAM_TEMPS
bool VerifyOcam_temps_fbBuffer(::flatbuffers::Verifier &verifier)
const MagAOX::logger::Ocam_temps_fb * GetOcam_temps_fb(const void *buf)
inline ::flatbuffers::Offset< Ocam_temps_fb > CreateOcam_temps_fb(::flatbuffers::FlatBufferBuilder &_fbb, float ccd=0.0f, float cpu=0.0f, float power=0.0f, float bias=0.0f, float water=0.0f, float left=0.0f, float right=0.0f, float cooling=0.0f)
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 float &ccd, const float &cpu, const float &power, const float &bias, const float &water, const float &left, const float &right, const float &cooling)
Construct from components.
Log entry recording the build-time git state.
static const flatlogs::eventCodeT eventCode
The event code.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static logMetaDetail getAccessor(const std::string &member)
Get the logMetaDetail for a member by name.
static float bias(void *msgBuffer)
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.
static float ccd(void *msgBuffer)
static float water(void *msgBuffer)
static float right(void *msgBuffer)
static float left(void *msgBuffer)
static float power(void *msgBuffer)
static float cpu(void *msgBuffer)
static float cooling(void *msgBuffer)
static const flatlogs::logPrioT defaultLevel
The default level.