8#ifndef logger_types_telem_pi335_hpp 
    9#define logger_types_telem_pi335_hpp 
   65        static_cast<void>(len);
 
   69        std::string msg = 
"[pi335] ";
 
   72        msg += std::to_string(fbs->pos1Set()) + 
" ";
 
   75        msg += std::to_string(fbs->pos1()) + 
" ";
 
   78        msg += std::to_string(fbs->sva1()) + 
" ";
 
   81        msg += std::to_string(fbs->pos2Set()) + 
" ";
 
   84        msg += std::to_string(fbs->pos2()) + 
" ";
 
   87        msg += std::to_string(fbs->sva2()) + 
" ";
 
   90        msg += std::to_string(fbs->pos3Set()) + 
" ";
 
   93        msg += std::to_string(fbs->pos3()) + 
" ";
 
   96        msg += std::to_string(fbs->sva3());
 
 
  104        return fbs->pos1Set();
 
 
  107    static float pos1(
void *msgBuffer)
 
 
  113    static float sva1(
void *msgBuffer)
 
 
  122        return fbs->pos2Set();
 
 
  125    static float pos2(
void *msgBuffer)
 
 
  131    static float sva2(
void *msgBuffer)
 
 
  140        return fbs->pos3Set();
 
 
  143    static float pos3(
void *msgBuffer)
 
 
  149    static float sva3(
void *msgBuffer)
 
 
  162        if (member == 
"pos1Set")
 
  164        else if (member == 
"pos1")
 
  166        else if (member == 
"sva1")
 
  168        else if (member == 
"pos2Set")
 
  170        else if (member == 
"pos2")
 
  172        else if (member == 
"sva2")
 
  174        else if (member == 
"pos3Set")
 
  176        else if (member == 
"pos3")
 
  178        else if (member == 
"sva3")
 
  182            std::cerr << 
"No member " << member << 
" in telem_pi335\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_PI335
 
inline ::flatbuffers::Offset< Telem_pi335_fb > CreateTelem_pi335_fb(::flatbuffers::FlatBufferBuilder &_fbb, float pos1Set=0.0f, float pos1=0.0f, float sva1=0.0f, float pos2Set=0.0f, float pos2=0.0f, float sva2=0.0f, float pos3Set=0.0f, float pos3=0.0f, float sva3=0.0f)
 
bool VerifyTelem_pi335_fbBuffer(::flatbuffers::Verifier &verifier)
 
const MagAOX::logger::Telem_pi335_fb * GetTelem_pi335_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 float &pos1Set, const float &pos1, const float &sva1, const float &pos2Set, const float &pos2, const float &sva2, const float &pos3Set, const float &pos3, const float &sva3)
Construct from components.
 
Log entry recording the build-time git state.
 
static float pos3Set(void *msgBuffer)
 
static float sva3(void *msgBuffer)
 
static const flatlogs::eventCodeT eventCode
The event code.
 
static float pos2(void *msgBuffer)
 
static float pos3(void *msgBuffer)
 
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
 
static float pos1(void *msgBuffer)
 
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Get the message formatte for human consumption.
 
static timespec lastRecord
The time of the last time this log was recorded. Used by the telemetry system.
 
static float pos1Set(void *msgBuffer)
 
static float pos2Set(void *msgBuffer)
 
static const flatlogs::logPrioT defaultLevel
The default level.
 
static logMetaDetail getAccessor(const std::string &member)
Get the logMetaDetail for a member by name.
 
static float sva1(void *msgBuffer)
 
static float sva2(void *msgBuffer)