test printout added

This commit is contained in:
Robin Müller 2020-09-16 16:32:17 +02:00 committed by Robin.Mueller
parent bc525ab2eb
commit f80463ef7b
2 changed files with 12 additions and 14 deletions

View File

@ -134,13 +134,13 @@ void initTask() {
/* Test Task */
// PeriodicTaskIF* TestTask = TaskFactory::instance()->
// createPeriodicTask("TEST_TASK", 80,
// PeriodicTaskIF::MINIMUM_STACK_SIZE, 5.0, nullptr);
// result = TestTask->addComponent(objects::TEST_TASK);
// if (result != HasReturnvaluesIF::RETURN_OK) {
// sif::error << "Add component Test Task failed" << std::endl;
// }
PeriodicTaskIF* TestTask = TaskFactory::instance()->
createPeriodicTask("TEST_TASK", 80,
PeriodicTaskIF::MINIMUM_STACK_SIZE, 5.0, nullptr);
result = TestTask->addComponent(objects::TEST_TASK);
if (result != HasReturnvaluesIF::RETURN_OK) {
sif::error << "Add component Test Task failed" << std::endl;
}
/* Polling Sequence Table Default */
@ -153,7 +153,7 @@ void initTask() {
// sif::error << "creating PST failed" << std::endl;
// }
//TestTask->startTask();
TestTask->startTask();
PacketDistributorTask->startTask();
//PollingSequenceTableTaskDefault->startTask();
UdpBridgeTask->startTask();

View File

@ -1,13 +1,10 @@
#include "logicalAddresses.h"
#include "apid.h"
#include <test/testtasks/TestTask.h>
#include <test/testtasks/PusTcInjector.h>
#include <fsfw/objectmanager/frameworkObjects.h>
#include <fsfw/serviceinterface/ServiceInterfaceStream.h>
#include <fsfw/objectmanager/ObjectManagerIF.h>
#include <fsfw/timemanager/Stopwatch.h>
#include <fsfw/globalfunctions/arrayprinter.h>
#include <etl/vector.h>
#include <array>
#include <cstring>
@ -27,6 +24,7 @@ TestTask::~TestTask() {
ReturnValue_t TestTask::performOperation(uint8_t operationCode) {
ReturnValue_t result = RETURN_OK;
sif::info << "Hallo EIVE!" << std::endl;
testLock ->lockMutex(MutexIF::TimeoutType::WAITING, 20);
if(oneShotAction) {
// Add code here which should only be run once