diff --git a/_bin/linux/debug/fsfw-example-linux.elf b/_bin/linux/debug/fsfw-example-linux.elf index 35f0340..3de02bd 100755 Binary files a/_bin/linux/debug/fsfw-example-linux.elf and b/_bin/linux/debug/fsfw-example-linux.elf differ diff --git a/_obj/linux/debug/bsp_linux/core/InitMission.o b/_obj/linux/debug/bsp_linux/core/InitMission.o index 8c48136..bd8fa4d 100644 Binary files a/_obj/linux/debug/bsp_linux/core/InitMission.o and b/_obj/linux/debug/bsp_linux/core/InitMission.o differ diff --git a/_obj/linux/debug/bsp_linux/fsfwconfig/pollingsequence/PollingSequenceArduinoFunction.o b/_obj/linux/debug/bsp_linux/fsfwconfig/pollingsequence/PollingSequenceArduinoFunction.o index 9da8bdd..83eb15b 100644 Binary files a/_obj/linux/debug/bsp_linux/fsfwconfig/pollingsequence/PollingSequenceArduinoFunction.o and b/_obj/linux/debug/bsp_linux/fsfwconfig/pollingsequence/PollingSequenceArduinoFunction.o differ diff --git a/_obj/linux/debug/fsfw/devicehandlers/DeviceHandlerBase.o b/_obj/linux/debug/fsfw/devicehandlers/DeviceHandlerBase.o index 0c42841..4885e07 100644 Binary files a/_obj/linux/debug/fsfw/devicehandlers/DeviceHandlerBase.o and b/_obj/linux/debug/fsfw/devicehandlers/DeviceHandlerBase.o differ diff --git a/_obj/linux/debug/mission/Controller/TCS_ThermalComponent.o b/_obj/linux/debug/mission/Controller/TCS_ThermalComponent.o index d6d26f7..542bab4 100644 Binary files a/_obj/linux/debug/mission/Controller/TCS_ThermalComponent.o and b/_obj/linux/debug/mission/Controller/TCS_ThermalComponent.o differ diff --git a/_obj/linux/debug/mission/Controller/ThermalController.o b/_obj/linux/debug/mission/Controller/ThermalController.o index 262d79d..de134f8 100644 Binary files a/_obj/linux/debug/mission/Controller/ThermalController.o and b/_obj/linux/debug/mission/Controller/ThermalController.o differ diff --git a/_obj/linux/debug/mission/DeviceHandler/ArduinoComIF.o b/_obj/linux/debug/mission/DeviceHandler/ArduinoComIF.o index 33e5d0b..749bd59 100644 Binary files a/_obj/linux/debug/mission/DeviceHandler/ArduinoComIF.o and b/_obj/linux/debug/mission/DeviceHandler/ArduinoComIF.o differ diff --git a/_obj/linux/debug/mission/core/GenericFactory.o b/_obj/linux/debug/mission/core/GenericFactory.o index 48c5052..5b0134c 100644 Binary files a/_obj/linux/debug/mission/core/GenericFactory.o and b/_obj/linux/debug/mission/core/GenericFactory.o differ diff --git a/bsp_linux/core/InitMission.cpp b/bsp_linux/core/InitMission.cpp index dfc1c17..8a84b86 100644 --- a/bsp_linux/core/InitMission.cpp +++ b/bsp_linux/core/InitMission.cpp @@ -150,13 +150,13 @@ void InitMission::createTasks(){ #endif //Main thread sleep - sif::debug << "Starting Tasks in 2 seconds" << std::endl; - TaskFactory::delayTask(2000); + sif::debug << "Starting Tasks in 3.2 seconds" << std::endl; + TaskFactory::delayTask(3200); distributerTask->startTask(); udpBridgeTask->startTask(); udpPollingTask->startTask(); //serializeTask->startTask(); - arduinoTask->startTask(); + //arduinoTask->startTask(); controllerTask->startTask(); //payloadTask->startTask(); diff --git a/bsp_linux/fsfwconfig/pollingsequence/PollingSequenceArduinoFunction.cpp b/bsp_linux/fsfwconfig/pollingsequence/PollingSequenceArduinoFunction.cpp index 5ff6505..624d04c 100644 --- a/bsp_linux/fsfwconfig/pollingsequence/PollingSequenceArduinoFunction.cpp +++ b/bsp_linux/fsfwconfig/pollingsequence/PollingSequenceArduinoFunction.cpp @@ -17,9 +17,9 @@ ReturnValue_t pollingSequenceArduinoFunction( uint32_t length = thisSequence->getPeriodMs(); thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0, 0); - thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.2, 1); - thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.4, 2); - thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.6, 3); + thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.8, 1); + thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.8, 2); + thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.8, 3); if (thisSequence->checkSequence() == HasReturnvaluesIF::RETURN_OK) { return HasReturnvaluesIF::RETURN_OK; diff --git a/fsfw/devicehandlers/DeviceHandlerBase.cpp b/fsfw/devicehandlers/DeviceHandlerBase.cpp index da87e21..0e9be77 100644 --- a/fsfw/devicehandlers/DeviceHandlerBase.cpp +++ b/fsfw/devicehandlers/DeviceHandlerBase.cpp @@ -67,7 +67,7 @@ ReturnValue_t DeviceHandlerBase::performOperation(uint8_t counter) { this->pstStep = counter; if (getComAction() == SEND_WRITE) { - sif::debug<<" DH_base: performOp1"< writableTargetState(targetStatePoolId, &mySet, PoolVariableIF::VAR_WRITE); + writableTargetState = ThermalComponentIF::STATE_REQUEST_NON_OPERATIONAL; + mySet.commit(PoolVariableIF::VALID);*/ + } TCS_ThermalComponent::~TCS_ThermalComponent() { @@ -31,6 +38,7 @@ TCS_ThermalComponent::~TCS_ThermalComponent() { ThermalComponentIF::HeaterRequest TCS_ThermalComponent::performOperation(uint8_t opCode, bool redundancy, bool dual) { + sif::debug<<"DEBUG_COMPONENT: 1"<performOperation(0); @@ -40,9 +48,11 @@ ThermalComponentIF::HeaterRequest TCS_ThermalComponent::performOperation(uint8_t RedundantHeater->performOperation(0); } } + sif::debug<<"DEBUG_COMPONENT: 2"<set(); if (redundancy){ if (result != HasReturnvaluesIF::RETURN_OK || dual) { + sif::debug<<"DEBUG_COMPONENT: 5"<set(); + sif::debug<<"DEBUG_COMPONENT: 6"<clear(false); + sif::debug<<"DEBUG_COMPONENT: 8"<clear(false); + sif::debug<<"DEBUG_COMPONENT: 11"<clear(false); - } } else { + sif::debug<<"DEBUG_COMPONENT: 12"<clear(false); RedundantHeater->clear(false); + sif::debug<<"DEBUG_COMPONENT: 13"<::iterator iter = sensors.begin(); iter != sensors.end(); iter++) { iter->performHealthOp(); } - sif::debug<<"\nDEBUG_TCS: Health ops"<::iterator iter = sensors.begin(); iter != sensors.end(); iter++) { iter->performOperation(0); } - TCSData.commit(); - sif::debug<<"\nDEBUG_TCS: Sensor ops"<::iterator iter = components.begin(); iter != components.end(); iter++) { - request = iter->performOperation(0, true, false); // request returnvalue + request = iter->performOperation(0, true, false); // request returnvalue to check, overridden //request = iter->performOperation(0, ThermalComponentIF::SAFE, true, false); } - TCSData.commit(); - sif::debug<<"\nDEBUG_TCS: Component ops"< TempValueVec; diff --git a/mission/DeviceHandler/ArduinoComIF.cpp b/mission/DeviceHandler/ArduinoComIF.cpp index dd64996..53b0e66 100644 --- a/mission/DeviceHandler/ArduinoComIF.cpp +++ b/mission/DeviceHandler/ArduinoComIF.cpp @@ -10,7 +10,6 @@ #include #include -//#include #include #include @@ -200,7 +199,7 @@ ReturnValue_t ArduinoComIF::readReceivedMessage(CookieIF *cookie, buffer = &buf_ptr;*/ *buffer = read_buf; - close(Cookie->Serial_port_number); + //close(Cookie->Serial_port_number); return RETURN_OK; } diff --git a/mission/DeviceHandler/ArduinoComIF.h b/mission/DeviceHandler/ArduinoComIF.h index 45ba6db..c9bf91a 100644 --- a/mission/DeviceHandler/ArduinoComIF.h +++ b/mission/DeviceHandler/ArduinoComIF.h @@ -34,10 +34,6 @@ public: ArduinoComIF(object_id_t objectId); virtual ~ArduinoComIF(); - /** - * DeviceCommunicationIF overrides - * (see DeviceCommunicationIF documentation) - */ ReturnValue_t initializeInterface(CookieIF * cookie) override; ReturnValue_t sendMessage(CookieIF *cookie, const uint8_t * sendData, size_t sendLen) override; @@ -49,24 +45,22 @@ public: private: + // DELETE /** * Send TM packet which contains received data as TM[17,130]. * Wiretapping will do the same. * @param data * @param len */ - void sendTmPacket(const uint8_t *data,uint32_t len); + //void sendTmPacket(const uint8_t *data,uint32_t len); - AcceptsTelemetryIF* funnel = nullptr; + /*AcceptsTelemetryIF* funnel = nullptr; MessageQueueIF* tmQueue = nullptr; size_t replyMaxLen = 0; - using ReplyBuffer = std::vector; std::map replyMap; - uint8_t dummyReplyCounter = 0; - - uint16_t packetSubCounter = 0; + uint16_t packetSubCounter = 0;*/ }; diff --git a/mission/core/GenericFactory.cpp b/mission/core/GenericFactory.cpp index ebdd354..909fab1 100644 --- a/mission/core/GenericFactory.cpp +++ b/mission/core/GenericFactory.cpp @@ -68,5 +68,6 @@ void ObjectFactory::produceGenericObjects() { new TestDevice(objects::TEST_DEVICE_HANDLER, objects::TEST_ECHO_COM_IF, testCookie, true); #endif*/ + }