failed approach
This commit is contained in:
@ -132,13 +132,21 @@ void InitMission::initTasks(){
|
||||
|
||||
|
||||
#if ADD_TEST_CODE == 1
|
||||
FixedTimeslotTaskIF* TestTimeslotTask = TaskFactory::instance()->
|
||||
createFixedTimeslotTask("PST_TEST_TASK", 10,
|
||||
PeriodicTaskIF::MINIMUM_STACK_SIZE, 1.0, nullptr);
|
||||
result = pst::pollingSequenceTestFunction(TestTimeslotTask);
|
||||
if(result != HasReturnvaluesIF::RETURN_OK) {
|
||||
sif::error << "InitMission::createTasks: Test PST initialization "
|
||||
<< "failed!" << std::endl;
|
||||
// FixedTimeslotTaskIF* TestTimeslotTask = TaskFactory::instance()->
|
||||
// createFixedTimeslotTask("PST_TEST_TASK", 10,
|
||||
// PeriodicTaskIF::MINIMUM_STACK_SIZE, 1.0, nullptr);
|
||||
// result = pst::pollingSequenceTestFunction(TestTimeslotTask);
|
||||
// if(result != HasReturnvaluesIF::RETURN_OK) {
|
||||
// sif::error << "InitMission::createTasks: Test PST initialization "
|
||||
// << "failed!" << std::endl;
|
||||
// }
|
||||
|
||||
PeriodicTaskIF* P60DockTestTask = TaskFactory::instance()->
|
||||
createPeriodicTask("P60 Dock", 50 , 4096,
|
||||
1, nullptr);
|
||||
result = PusLowPrio->addComponent(objects::P60_DOCK_TEST_TASK);
|
||||
if(result!=HasReturnvaluesIF::RETURN_OK){
|
||||
sif::error << "Object add component failed" << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -154,7 +162,9 @@ void InitMission::initTasks(){
|
||||
PusMedPrio->startTask();
|
||||
PusLowPrio->startTask();
|
||||
#if ADD_TEST_CODE == 1
|
||||
TestTimeslotTask->startTask();
|
||||
// TestTimeslotTask->startTask();
|
||||
P60DockTestTask->startTask();
|
||||
|
||||
#endif
|
||||
sif::info << "Tasks started.." << std::endl;
|
||||
}
|
||||
|
@ -37,8 +37,9 @@
|
||||
#if ADD_TEST_CODE == 1
|
||||
//#include <test/TestCookie.h>
|
||||
//#include <test/TestDeviceHandler.h>
|
||||
#include <test/testtasks/TestTask.h>
|
||||
//#include <test/testtasks/TestTask.h>
|
||||
//#include <test/TestEchoComIF.h>
|
||||
#include <test/testtasks/PD60DockTestTask.h>
|
||||
#endif
|
||||
|
||||
void Factory::setStaticFrameworkObjectIds(){
|
||||
@ -130,5 +131,6 @@ void ObjectFactory::produce(){
|
||||
// new TestDevice(objects::TEST_DEVICE_HANDLER, objects::TEST_ECHO_COM_IF,
|
||||
// testCookie, true);
|
||||
new ArduinoComIF(objects::ARDUINO_COM_IF, true, nullptr);
|
||||
new P60DockTestTask(objects::P60DOCK_TEST_TASK);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user