mirror of
https://github.com/nasa/fprime.git
synced 2025-12-13 11:04:15 -06:00
* lestarch: stripping out FW_OBJECT_NAMES from Autocoder tests * lestarch: scrubbing FW_OBJECT_NAMES from templates * lestarch: scrubbing FW_OBJECT_NAMES from templates dir * lestarch: fixing polytype toString usage * lestarch: fixing more FW_OBJECT_NAMES
38 lines
865 B
C++
38 lines
865 B
C++
/*
|
|
* TestCommand1Impl.cpp
|
|
*
|
|
* Created on: Mar 28, 2014
|
|
* Author: tcanham
|
|
*/
|
|
|
|
#include <Autocoders/Python/test/event1/TestLogRecvImpl.hpp>
|
|
#include <cstdio>
|
|
|
|
TestLogRecvImpl::TestLogRecvImpl(const char* name) : LogTextImpl(name)
|
|
{
|
|
}
|
|
|
|
TestLogRecvImpl::~TestLogRecvImpl() {
|
|
}
|
|
|
|
void TestLogRecvImpl::logRecvPort_handler(NATIVE_INT_TYPE portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity& severity, Fw::LogBuffer &args) {
|
|
printf("Received log %d, Time (%d,%d:%d) severity %d\n",id,timeTag.getTimeBase(),timeTag.getSeconds(),timeTag.getUSeconds(),severity.e);
|
|
I32 arg1;
|
|
F32 arg2;
|
|
U8 arg3;
|
|
|
|
// deserialize them in reverse order
|
|
args.deserialize(arg3);
|
|
args.deserialize(arg2);
|
|
args.deserialize(arg1);
|
|
printf("Args: %d %f %c\n",arg1,arg2,arg3);
|
|
|
|
|
|
}
|
|
|
|
void TestLogRecvImpl::init() {
|
|
LogTextImpl::init();
|
|
}
|
|
|
|
|