Deleted Added
sdiff udiff text old ( 106163 ) new ( 132451 )
full compact
1/*
2 * refclock_true - clock driver for the Kinemetrics Truetime receivers
3 * Receiver Version 3.0C - tested plain, with CLKLDISC
4 * Developement work being done:
5 * - Properly handle varying satellite positions (more acurately)
6 * - Integrate GPSTM and/or OMEGA and/or TRAK and/or ??? drivers
7 */
8

--- 489 unchanged lines hidden (view full) ---

498 * the count from the PCL720
499 */
500 if (!clocktime(pp->day, pp->hour, pp->minute,
501 pp->second, GMT, pp->lastrec.l_ui,
502 &pp->yearstart, &off.l_ui)) {
503 refclock_report(peer, CEVNT_BADTIME);
504 return;
505 }
506 off.l_uf = 0;
507#endif
508
509 pp->usec = true_sample720();
510#ifdef CLOCK_ATOM
511 TVUTOTSF(pp->usec, off.l_uf);
512#endif
513
514 /*

--- 26 unchanged lines hidden (view full) ---

541 if (!refclock_process(pp)) {
542 refclock_report(peer, CEVNT_BADTIME);
543 return;
544 }
545 /*
546 * If clock is good we send a NOMINAL message so that
547 * any previous BAD messages are nullified
548 */
549 pp->lastref = pp->lastrec;
550 refclock_receive(peer);
551 refclock_report(peer, CEVNT_NOMINAL);
552
553 /*
554 * We have succedded in answering the poll.
555 * Turn off the flag and return
556 */
557 up->polled = 0;
558
559 return;

--- 314 unchanged lines hidden ---