some tweaks
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
Robin Müller 2022-04-08 11:31:29 +02:00
parent 4a6840f098
commit 351920aa7b
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 2 additions and 4 deletions

View File

@ -3,8 +3,6 @@
#include <fsfw/events/EventManager.h> #include <fsfw/events/EventManager.h>
#include <fsfw/ipc/QueueFactory.h> #include <fsfw/ipc/QueueFactory.h>
#include <algorithm>
#include "OBSWConfig.h" #include "OBSWConfig.h"
#include "OBSWVersion.h" #include "OBSWVersion.h"
#include "fsfw/serviceinterface/ServiceInterface.h" #include "fsfw/serviceinterface/ServiceInterface.h"
@ -18,7 +16,7 @@
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <algorithm>
#include <filesystem> #include <filesystem>
#include "bsp_q7s/memory/SdCardManager.h" #include "bsp_q7s/memory/SdCardManager.h"

View File

@ -190,7 +190,7 @@ void GPSHyperionLinuxController::readGpsDataFromGpsd() {
} else { } else {
timeIsConstantCounter = 0; timeIsConstantCounter = 0;
} }
if (timeInit) { if (timeInit and validFix) {
if (not utility::timeSanityCheck()) { if (not utility::timeSanityCheck()) {
sif::info << "Setting init clock in gps ctrl" << std::endl; sif::info << "Setting init clock in gps ctrl" << std::endl;
// For some reason, the clock needs to be somewhat correct for NTP to work. Really dumb.. // For some reason, the clock needs to be somewhat correct for NTP to work. Really dumb..