GPS Time Handling #203
@ -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"
|
||||||
|
@ -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..
|
||||||
|
Loading…
Reference in New Issue
Block a user