2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/telem_cooler.hpp"
5#include "../types/generated/telem_cooler_generated.h"
6#include "../types/flatbuffer_log.hpp"
51 CTelemCooler_0(
float liqTemp_,
float flowRate_, uint8_t pumpLvl_, uint16_t pumpSpd_, uint8_t fanLvl_, uint16_t fanSpd_) {
64 void* buffPtr = tc.builder.GetBufferPointer();
97 flatlogs::logHeader::createLog<MagAOX::logger::telem_cooler>(logBuffer
107 GIVEN(
"a telem_cooler log code")
109 WHEN(
"random values for fields")
bool verify(const typename MagAOX::logger::telem_cooler::messageT &msg)
CTelemCooler_0(float liqTemp_, float flowRate_, uint8_t pumpLvl_, uint16_t pumpSpd_, uint8_t fanLvl_, uint16_t fanSpd_)
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_cooler_fb * GetTelem_cooler_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.
SCENARIO("Create telem_cooler 0", "[a log item]")
const uint8_t telemCoolerFanLvl_0
const float telemCoolerLiqTemp_0
const uint8_t telemCoolerPumpLvl_0
const float telemCoolerFlowRate_0
const uint16_t telemCoolerFanSpd_0
const uint16_t telemCoolerPumpSpd_0