MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / setTimestamp

Method setTimestamp

Components/FrequencyCorrectionDialog.cpp:583–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583void
584FrequencyCorrectionDialog::setTimestamp(struct timeval const &tv)
585{
586 if (!this->realTime) {
587 struct timeval delta;
588
589 timersub(&tv, &this->timeStamp, &delta);
590
591 // If the delta is suspiciously big, or backwards in time, recalculate
592 // ALOS
593 if (delta.tv_sec >= 1 || delta.tv_sec < 0 || delta.tv_usec < 0)
594 this->haveALOS = false;
595
596 this->timeStamp = tv;
597 this->updatePrediction();
598 }
599}
600
601void
602FrequencyCorrectionDialog::resetTimestamp(struct timeval const &tv)

Callers 3

setTimeStampMethod · 0.80
setTimeStampMethod · 0.80
setOrbitReportMethod · 0.80

Calls 1

updatePredictionMethod · 0.95

Tested by 2

setTimeStampMethod · 0.64
setOrbitReportMethod · 0.64