WIP: SCEX Init #272

Closed
muellerr wants to merge 62 commits from irini into develop
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 8a23615462 - Show all commits

View File

@ -29,6 +29,7 @@ UartTestClass::UartTestClass(object_id_t objectId, ScexUartReader* reader)
: TestTask(objectId), reader(reader) {
mode = TestModes::SCEX;
scexMode = ScexModes::READER_TASK;
// No one-cell and all-cell support implemented yet
currCmd = scex::Cmds::FRAM;
if (scexMode == ScexModes::SIMPLE) {
auto encodingBuf = new std::array<uint8_t, 4096>;
@ -213,7 +214,7 @@ void UartTestClass::scexPeriodic() {
out << helper;
}
// fram
// packetcounter eins höher, wenn mehr packet verloren -> merkt sich welches packet fehlt
// packetcounter eins h<EFBFBD>her, wenn mehr packet verloren -> merkt sich welches packet fehlt
// was wenn erstes packet fehlt; mit boolean var (firstpacketarrived=false) die immer mit
// finish false wird?
// countdown (max 2min), wenn nicht if (helper.getPacketCounter() ==

View File

@ -133,6 +133,7 @@ ReturnValue_t ScexUartReader::sendMessage(CookieIF *cookie, const uint8_t *sendD
sif::warning << "ScexUartReader::sendMessage: Encoding failed" << std::endl;
return RETURN_FAILED;
}
arrayprinter::print(cmdbuf.data(), encodedLen);
size_t bytesWritten = write(serialPort, cmdbuf.data(), encodedLen);
if (bytesWritten != encodedLen) {
sif::warning << "ScexUartReader::sendMessage: Sending ping command to solar experiment failed"