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
|
||||
}
|
||||
|
23
mission/devices/P60DockHandler.cpp
Normal file
23
mission/devices/P60DockHandler.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* P60DockHandler.cpp
|
||||
*
|
||||
* Created on: 18.11.2020
|
||||
* Author: jakob
|
||||
*/
|
||||
|
||||
#include <csp/csp.h>
|
||||
#include <csp/interfaces/csp_if_can.h>
|
||||
#include "P60DockHandler.h"
|
||||
|
||||
P60DockHandler::P60DockHandler() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
P60DockHandler::~P60DockHandler() {
|
||||
}
|
||||
|
||||
|
||||
P60DockHandler::performOperation(uint8_t operationCode) {
|
||||
|
||||
}
|
18
mission/devices/P60DockHandler.h
Normal file
18
mission/devices/P60DockHandler.h
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* P60DockHandler.h
|
||||
*
|
||||
* Created on: 18.11.2020
|
||||
* Author: jakob
|
||||
*/
|
||||
|
||||
#ifndef MISSION_DEVICES_P60DOCKHANDLER_H_
|
||||
#define MISSION_DEVICES_P60DOCKHANDLER_H_
|
||||
|
||||
class P60DockHandler: public DeviceHandlerBase {
|
||||
public:
|
||||
P60DockHandler();
|
||||
virtual ~P60DockHandler();
|
||||
virtual ReturnValue_t performOperation(uint8_t operationCode = 0);
|
||||
};
|
||||
|
||||
#endif /* MISSION_DEVICES_P60DOCKHANDLER_H_ */
|
Reference in New Issue
Block a user