scex reader task started
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Irini Kosmidou
2022-03-25 17:48:38 +01:00
parent 15d1da8199
commit df712c7100
7 changed files with 52 additions and 0 deletions

View File

@ -4,4 +4,7 @@ if(EIVE_BUILD_GPSD_GPS_HANDLER)
)
endif()
target_sources(${OBSW_NAME} PRIVATE
ScexUartReader.cpp
)
add_subdirectory(startracker)

View File

@ -0,0 +1,18 @@
#include "ScexUartReader.h"
#include <iostream>
ScexUartReader::ScexUartReader(object_id_t objectId):SystemObject(objectId) {
}
void ScexUartRead::start() {
semaphore->give();
}
ReturnValue_t ScexUartReader::performOperation(uint8_t operationCode) {
std::cout<<"hallo welt"<<std::endl;
semaphore->take();
while(true) {
semaphore->take();
}
return RETURN_OK;
}

View File

@ -0,0 +1,18 @@
#ifndef LINUX_DEVICES_SCEXUARTREADER_H_
#define LINUX_DEVICES_SCEXUARTREADER_H_
#include <fsfw/objectmanager/SystemObject.h>
#include <fsfw/tasks/ExecutableObjectIF.h>
class ScexUartReader: public SystemObject, //strg+shift+n
public ExecutableObjectIF,
public HasReturnvaluesIF {
public:
ScexUartReader(object_id_t objectId);
private:
ReturnValue_t performOperation(uint8_t operationCode = 0) override;
};
#endif /* LINUX_DEVICES_SCEXUARTREADER_H_ */