scex reader task started
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
This commit is contained in:
@ -4,4 +4,7 @@ if(EIVE_BUILD_GPSD_GPS_HANDLER)
|
||||
)
|
||||
endif()
|
||||
|
||||
target_sources(${OBSW_NAME} PRIVATE
|
||||
ScexUartReader.cpp
|
||||
)
|
||||
add_subdirectory(startracker)
|
||||
|
18
linux/devices/ScexUartReader.cpp
Normal file
18
linux/devices/ScexUartReader.cpp
Normal 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;
|
||||
}
|
18
linux/devices/ScexUartReader.h
Normal file
18
linux/devices/ScexUartReader.h
Normal 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_ */
|
Reference in New Issue
Block a user