v1.11.0 #243

Merged
muellerr merged 159 commits from develop into main 2022-05-04 17:19:57 +02:00
54 changed files with 2352 additions and 1536 deletions
Showing only changes of commit a5881a238b - Show all commits

View File

@ -1693,14 +1693,22 @@ void CoreController::setRebootMechanismLock(bool lock, xsc::Chip tgtChip, xsc::C
ReturnValue_t CoreController::timeFileHandler() { ReturnValue_t CoreController::timeFileHandler() {
if (gpsFix == GpsHyperion::FixMode::FIX_2D or gpsFix == GpsHyperion::FixMode::FIX_3D) { if (gpsFix == GpsHyperion::FixMode::FIX_2D or gpsFix == GpsHyperion::FixMode::FIX_3D) {
// It is assumed that the system time is set from the GPS time if(opDivider.check()) {
timeval currentTime = {}; // It is assumed that the system time is set from the GPS time
ReturnValue_t result = Clock::getClock_timeval(&currentTime); timeval currentTime = {};
if (result != HasReturnvaluesIF::RETURN_OK) { ReturnValue_t result = Clock::getClock_timeval(&currentTime);
return result; if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
std::string fileName = currMntPrefix + TIME_FILE;
std::ofstream timeFile(fileName);
if (not timeFile.good()) {
sif::error << "CoreController::timeFileHandler: Error opening time file: " <<
strerror(errno) << std::endl;
return RETURN_FAILED;
}
timeFile << "UNIX SECONDS: " << currentTime.tv_sec << std::endl;
} }
std::ofstream timeFile(currMntPrefix + TIME_FILE);
timeFile << "UNIX SECONDS: " << currentTime.tv_sec << std::endl;
} }
return RETURN_OK; return RETURN_OK;
} }

2
tmtc

Submodule tmtc updated: 9055281da4...19768cb1b1