2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/telem_stdcam.hpp"
5#include "../types/generated/telem_stdcam_generated.h"
6#include "../types/flatbuffer_log.hpp"
96 CTelemStdcam_0(std::string mode_,
float xcen_,
float ycen_,
int width_,
int height_,
int xbin_,
int ybin_,
float exptime_,
float fps_,
float emGain_,
float adcSpeed_,
float temp_,
float setpt_, uint8_t status_, uint8_t ontarget_, std::string statusStr_, std::string shutterStatusSr_, int8_t shutterState_, uint8_t synchro_,
float vshift_, uint8_t cropMode_) {
121 auto ts =
MagAOX::logger::telem_stdcam::messageT(mode_, xcen_, ycen_, width_, height_, xbin_, ybin_, exptime_, fps_, emGain_, adcSpeed_, temp_, setpt_, status_, ontarget_, statusStr_, shutterStatusSr_, shutterState_, synchro_, vshift_, cropMode_);
124 void* buffPtr = ts.builder.GetBufferPointer();
172 flatlogs::logHeader::createLog<MagAOX::logger::telem_stdcam>(logBuffer
182 GIVEN(
"a telem_stdcam log code")
184 WHEN(
"random values for fields")
187 CTelemStdcam_0 ts =
CTelemStdcam_0(
telemStdcamMode_0,
telemStdcamXcen_0,
telemStdcamYcen_0,
telemStdcamWidth_0,
telemStdcamHeight_0,
telemStdcamXbin_0,
telemStdcamYbin_0,
telemStdcamExptime_0,
telemStdcamFps_0,
telemStdcamEmGain_0,
telemStdcamAdcSpeed_0,
telemStdcamTemp_0,
telemStdcamSetpt_0,
telemStdcamStatus_0,
telemStdcamOntarget_0,
telemStdcamStatusStr_0,
telemStdcamShutterStatusSr_0,
telemStdcamShutterState_0,
telemStdcamSynchro_0,
telemStdcamVshift_0,
telemStdcamCropMode_0);
292 CTelemStdcam_1(std::string mode_,
float xcen_,
float ycen_,
int width_,
int height_,
int xbin_,
int ybin_,
float exptime_,
float fps_,
float emGain_,
float adcSpeed_,
float temp_,
float setpt_, uint8_t status_, uint8_t ontarget_, std::string statusStr_, std::string shutterStatusSr_, int8_t shutterState_, uint8_t synchro_) {
315 auto ts =
MagAOX::logger::telem_stdcam::messageT(mode_, xcen_, ycen_, width_, height_, xbin_, ybin_, exptime_, fps_, emGain_, adcSpeed_, temp_, setpt_, status_, ontarget_, statusStr_, shutterStatusSr_, shutterState_, synchro_);
318 void* buffPtr = ts.builder.GetBufferPointer();
364 flatlogs::logHeader::createLog<MagAOX::logger::telem_stdcam>(logBuffer
374 GIVEN(
"a telem_stdcam log code")
376 WHEN(
"random values for fields")
379 CTelemStdcam_1 ts =
CTelemStdcam_1(
telemStdcamMode_1,
telemStdcamXcen_1,
telemStdcamYcen_1,
telemStdcamWidth_1,
telemStdcamHeight_1,
telemStdcamXbin_1,
telemStdcamYbin_1,
telemStdcamExptime_1,
telemStdcamFps_1,
telemStdcamEmGain_1,
telemStdcamAdcSpeed_1,
telemStdcamTemp_1,
telemStdcamSetpt_1,
telemStdcamStatus_1,
telemStdcamOntarget_1,
telemStdcamStatusStr_1,
telemStdcamShutterStatusSr_1,
telemStdcamShutterState_1,
telemStdcamSynchro_1);
CTelemStdcam_0(std::string mode_, float xcen_, float ycen_, int width_, int height_, int xbin_, int ybin_, float exptime_, float fps_, float emGain_, float adcSpeed_, float temp_, float setpt_, uint8_t status_, uint8_t ontarget_, std::string statusStr_, std::string shutterStatusSr_, int8_t shutterState_, uint8_t synchro_, float vshift_, uint8_t cropMode_)
std::string m_saveTsStatusStr
std::string m_saveTsShutterStatusSr
bool verify(const typename MagAOX::logger::telem_stdcam::messageT &msg)
int8_t m_saveTsShutterState
std::string m_shutterStatusSr
std::string m_saveTsShutterStatusSr
int8_t m_saveTsShutterState
CTelemStdcam_1(std::string mode_, float xcen_, float ycen_, int width_, int height_, int xbin_, int ybin_, float exptime_, float fps_, float emGain_, float adcSpeed_, float temp_, float setpt_, uint8_t status_, uint8_t ontarget_, std::string statusStr_, std::string shutterStatusSr_, int8_t shutterState_, uint8_t synchro_)
std::string m_saveTsStatusStr
std::string m_shutterStatusSr
bool verify(const typename MagAOX::logger::telem_stdcam::messageT &msg)
int8_t logPrioT
The type of the log priority code.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
const MagAOX::logger::Telem_stdcam_fb * GetTelem_stdcam_fb(const void *buf)
static constexpr logPrioT LOG_DEFAULT
Used to denote "use the default level for this log type".
static flatlogs::msgLenT length(const fbMessage &msg)
Get the length of the message.
The type of the input message.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
A fixed-width timespec structure.
const std::string telemStdcamStatusStr_1
const int telemStdcamHeight_1
SCENARIO("Create telem_stdcam 0", "[a log item]")
const int telemStdcamYbin_1
const float telemStdcamTemp_0
const float telemStdcamExptime_0
const float telemStdcamAdcSpeed_0
const std::string telemStdcamShutterStatusSr_1
const int telemStdcamWidth_1
const std::string telemStdcamMode_1
const float telemStdcamEmGain_0
const uint8_t telemStdcamStatus_0
const int telemStdcamXbin_0
const uint8_t telemStdcamCropMode_0
const int telemStdcamXbin_1
const std::string telemStdcamShutterStatusSr_0
const int telemStdcamHeight_0
const float telemStdcamExptime_1
const float telemStdcamFps_1
const float telemStdcamSetpt_0
const uint8_t telemStdcamStatus_1
const uint8_t telemStdcamSynchro_1
const float telemStdcamEmGain_1
const float telemStdcamYcen_1
const float telemStdcamTemp_1
const int8_t telemStdcamShutterState_1
const float telemStdcamYcen_0
const uint8_t telemStdcamOntarget_0
const int8_t telemStdcamShutterState_0
const int telemStdcamWidth_0
const uint8_t telemStdcamOntarget_1
const int telemStdcamYbin_0
const std::string telemStdcamStatusStr_0
const float telemStdcamAdcSpeed_1
const std::string telemStdcamMode_0
const float telemStdcamSetpt_1
const float telemStdcamXcen_0
const uint8_t telemStdcamSynchro_0
const float telemStdcamFps_0
const float telemStdcamVshift_0
const float telemStdcamXcen_1