The printing of the sensor data has been commented out. Errors in the device handler and controller tasks.
This commit is contained in:
@ -103,13 +103,12 @@ void InitMission::createTasks(){
|
||||
|
||||
PeriodicTaskIF* pusLowPrio = TaskFactory::instance()->
|
||||
createPeriodicTask("PUSB", 30, PeriodicTaskIF::MINIMUM_STACK_SIZE,
|
||||
1.6, nullptr);
|
||||
4, nullptr);
|
||||
result = pusLowPrio->addComponent(objects::PUS_SERVICE_17_TEST);
|
||||
if(result!=HasReturnvaluesIF::RETURN_OK){
|
||||
sif::error << "Object add component failed" << std::endl;
|
||||
}
|
||||
|
||||
sif::debug << "debug1: arduino tasks" << std::endl;
|
||||
FixedTimeslotTaskIF* arduinoTask = TaskFactory::instance()->
|
||||
createFixedTimeslotTask("ARDUINO_TASK",40,
|
||||
PeriodicTaskIF::MINIMUM_STACK_SIZE, 2, nullptr);
|
||||
@ -119,16 +118,15 @@ void InitMission::createTasks(){
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
sif::debug << "debug2: arduino tasks" << std::endl;
|
||||
FixedTimeslotTaskIF* controllerTask = TaskFactory::instance()->
|
||||
createFixedTimeslotTask("CONTROLLER_TASK",40,
|
||||
PeriodicTaskIF::MINIMUM_STACK_SIZE, 3, nullptr);
|
||||
result = pollingSequenceControllerFunction(controllerTask);
|
||||
PeriodicTaskIF* controllerTask = TaskFactory::instance()->
|
||||
createPeriodicTask("CONTROLLER_TASK",40,
|
||||
PeriodicTaskIF::MINIMUM_STACK_SIZE, 1, nullptr);
|
||||
//result = pollingSequenceControllerFunction(controllerTask);
|
||||
result = controllerTask->addComponent(objects::THERMAL_CONTROLLER);
|
||||
if(result != HasReturnvaluesIF::RETURN_OK) {
|
||||
sif::error << "InitMission::createTasks:ArduinoController initialization failed!"
|
||||
<< std::endl;
|
||||
}
|
||||
sif::debug << "debug3: arduino tasks" << std::endl;
|
||||
|
||||
#if OBSW_ADD_TEST_CODE == 1
|
||||
FixedTimeslotTaskIF* testTimeslotTask = TaskFactory::instance()->
|
||||
@ -158,10 +156,8 @@ void InitMission::createTasks(){
|
||||
udpBridgeTask->startTask();
|
||||
udpPollingTask->startTask();
|
||||
//serializeTask->startTask();
|
||||
arduinoTask->startTask();
|
||||
sif::debug << "debug4: arduino tasks" << std::endl;
|
||||
//arduinoTask->startTask();
|
||||
controllerTask->startTask();
|
||||
sif::debug << "debug5: arduino tasks" << std::endl;
|
||||
|
||||
//payloadTask->startTask();
|
||||
eventTask->startTask();
|
||||
|
@ -39,11 +39,8 @@ int main() {
|
||||
std::cout << "-- " << __DATE__ << " " << __TIME__ << " --" << std::endl;
|
||||
|
||||
objectManager = new ObjectManager(ObjectFactory::produce);
|
||||
sif::debug << "debug_MAIN: object produced" << std::endl;
|
||||
objectManager->initialize();
|
||||
sif::debug << "debug_MAIN: object initialized" << std::endl;
|
||||
InitMission::createTasks();
|
||||
sif::debug << "debug_MAIN: tasks created" << std::endl;
|
||||
//MutexExample::example();
|
||||
PusPacketCreator::createPusPacketAndPrint();
|
||||
|
||||
|
Reference in New Issue
Block a user