some fixes and tweaks
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
d6b60723d9
commit
ab0a3bfd45
@ -102,6 +102,7 @@ ReturnValue_t GpsHyperionLinuxController::performOperation(uint8_t opCode) {
|
|||||||
if (not callAgainImmediately) {
|
if (not callAgainImmediately) {
|
||||||
handleQueue();
|
handleQueue();
|
||||||
poolManager.performHkOperation();
|
poolManager.performHkOperation();
|
||||||
|
TaskFactory::delayTask(200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Should never be reached.
|
// Should never be reached.
|
||||||
@ -155,7 +156,7 @@ bool GpsHyperionLinuxController::readGpsDataFromGpsd() {
|
|||||||
};
|
};
|
||||||
if (readMode == ReadModes::SOCKET) {
|
if (readMode == ReadModes::SOCKET) {
|
||||||
// Perform other necessary handling if not data seen for 0.2 seconds.
|
// Perform other necessary handling if not data seen for 0.2 seconds.
|
||||||
if (gps_waiting(&gps, 200000)) {
|
if (gps_waiting(&gps, 0)) {
|
||||||
if (-1 == gps_read(&gps)) {
|
if (-1 == gps_read(&gps)) {
|
||||||
readError();
|
readError();
|
||||||
return false;
|
return false;
|
||||||
@ -258,7 +259,7 @@ ReturnValue_t GpsHyperionLinuxController::handleGpsReadData() {
|
|||||||
gpsSet.speed.setValid(false);
|
gpsSet.speed.setValid(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TIME_SET != (TIME_SET & gps.set)) {
|
if (TIME_SET == (TIME_SET & gps.set)) {
|
||||||
timeval time = {};
|
timeval time = {};
|
||||||
#if LIBGPS_VERSION_MINOR <= 17
|
#if LIBGPS_VERSION_MINOR <= 17
|
||||||
gpsSet.unixSeconds.value = std::floor(gps.fix.time);
|
gpsSet.unixSeconds.value = std::floor(gps.fix.time);
|
||||||
|
Loading…
Reference in New Issue
Block a user