| 952 | } |
| 953 | |
| 954 | void |
| 955 | FrequencyCorrectionDialog::onTick(void) |
| 956 | { |
| 957 | this->findNewSatellites(); |
| 958 | |
| 959 | if (this->realTime) { |
| 960 | struct timeval tv; |
| 961 | gettimeofday(&tv, nullptr); |
| 962 | |
| 963 | // Good timestamp to play around with the following TLES: |
| 964 | // |
| 965 | // ISS (ZARYA) |
| 966 | // 1 25544U 98067A 21275.52277778 .00006056 00000-0 11838-3 0 9993 |
| 967 | // 2 25544 51.6451 172.0044 0004138 50.9000 316.9051 15.48905523305232 |
| 968 | |
| 969 | // NOAA-19 |
| 970 | // 1 33591U 09005A 21275.30096120 .00000069 00000-0 62539-4 0 9997 |
| 971 | // 2 33591 99.1789 298.6299 0013801 188.9584 171.1343 14.12498277652005 |
| 972 | |
| 973 | // tv.tv_sec = 1633202535 - 100; |
| 974 | // tv.tv_usec = 0; |
| 975 | |
| 976 | this->timeStamp = tv; |
| 977 | this->updatePrediction(); |
| 978 | } |
| 979 | } |
nothing calls this directly
no test coverage detected