Deleted Added
full compact
refclock_true.c (106163) refclock_true.c (132451)
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 }
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;
506#endif
507
508 pp->usec = true_sample720();
509#ifdef CLOCK_ATOM
510 TVUTOTSF(pp->usec, off.l_uf);
511#endif
512
513 /*

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

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

--- 314 unchanged lines hidden ---
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 ---