2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/telem_pokecenter.hpp"
5#include "../types/generated/telem_pokecenter_generated.h"
6#include "../types/flatbuffer_log.hpp"
16const std::vector<float>
telemPokecenterPoke_x_0 = { 0.528996,0.647523,0.640772,0.2887,0.847617,0.746164,0.029067,0.970058,0.801876,0.963174 };
17const std::vector<float>
telemPokecenterPoke_y_0 = { 0.730408,0.412365,0.681051,0.000578,0.701367,0.979386,0.046297,0.201724,0.310254,0.719138 };
48 CTelemPokecenter_0(uint8_t measuring_,
float pupil_x_,
float pupil_y_, std::vector<float> poke_x_, std::vector<float> poke_y_) {
60 void* buffPtr = tp.builder.GetBufferPointer();
108 flatlogs::logHeader::createLog<MagAOX::logger::telem_pokecenter>(logBuffer
116SCENARIO(
"Create telem_pokecenter 0",
"[a log item]")
118 GIVEN(
"a telem_pokecenter log code")
120 WHEN(
"random values for fields")
138const std::vector<float>
telemPokecenterPokes_1 = { 0.172682,0.649215,0.918207,0.393055,0.842913,0.308341,0.220342,0.309587,0.295035,0.447912 };
179 void* buffPtr = tp.builder.GetBufferPointer();
218 flatlogs::logHeader::createLog<MagAOX::logger::telem_pokecenter>(logBuffer
226SCENARIO(
"Create telem_pokecenter 1",
"[a log item]")
228 GIVEN(
"a telem_pokecenter log code")
230 WHEN(
"random values for fields")
std::vector< float > m_saveTpPoke_x
uint8_t m_saveTpMeasuring
bool verify(const typename MagAOX::logger::telem_pokecenter::messageT &msg)
CTelemPokecenter_0(uint8_t measuring_, float pupil_x_, float pupil_y_, std::vector< float > poke_x_, std::vector< float > poke_y_)
std::vector< float > m_saveTpPoke_y
std::vector< float > m_poke_x
std::vector< float > m_poke_y
bool verify(const typename MagAOX::logger::telem_pokecenter::messageT &msg)
uint8_t m_saveTpMeasuring
std::vector< float > m_pokes
CTelemPokecenter_1(uint8_t measuring_, float pupil_x_, float pupil_y_, std::vector< float > pokes_)
std::vector< float > m_saveTpPokes
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_pokecenter_fb * GetTelem_pokecenter_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::vector< float > telemPokecenterPoke_y_0
const uint8_t telemPokecenterMeasuring_0
const float telemPokecenterPupil_y_1
const std::vector< float > telemPokecenterSpecialPokes_1
const std::vector< float > telemPokecenterPoke_x_0
const float telemPokecenterPupil_x_1
const uint8_t telemPokecenterMeasuring_1
const float telemPokecenterPupil_y_0
const float telemPokecenterPupil_x_0
SCENARIO("Create telem_pokecenter 0", "[a log item]")
const std::vector< float > telemPokecenterPokes_1