mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 23:38:06 -06:00
36 lines
855 B
C++
36 lines
855 B
C++
/*
|
|
* TestCommand1Impl.cpp
|
|
*
|
|
* Created on: Mar 28, 2014
|
|
* Author: tcanham
|
|
*/
|
|
|
|
#include <Autocoders/Python/test/command1/TestCommand1Impl.hpp>
|
|
#include <stdio.h>
|
|
|
|
#if FW_OBJECT_NAMES == 1
|
|
TestCommand1Impl::TestCommand1Impl(const char* name) : Test1ComponentBase(name)
|
|
#else
|
|
TestCommand1Impl::TestCommand1Impl()
|
|
#endif
|
|
{
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
|
|
|
TestCommand1Impl::~TestCommand1Impl() {
|
|
// TODO Auto-generated destructor stub
|
|
}
|
|
|
|
void TestCommand1Impl::init(void) {
|
|
Test1ComponentBase::init();
|
|
}
|
|
|
|
void TestCommand1Impl::aport_handler(NATIVE_INT_TYPE portNum, I32 arg4, F32 arg5, U8 arg6) {
|
|
}
|
|
|
|
void TestCommand1Impl::TEST_CMD_1_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, I32 arg1, F32 arg2, U8 arg3) {
|
|
printf("Got command args: %d %f %d\n", arg1, arg2, arg3 );
|
|
this->cmdResponse_out(opCode,cmdSeq,Fw::COMMAND_OK);
|
|
}
|