bk: 4d368cd9tsR9RntwadbBnURZBgUYzg
+* Lose the RANGEGATE check in PPS, from Dave Mills.
* ACTS refclock cleanup from Dave Mills.
* Documentation updates from Dave Mills.
(4.2.7p119) 2011/01/18 Released by Harlan Stenn <stenn@ntp.org>
* Definitions for the atom driver and its friends
*/
#define NANOSECOND 1000000000 /* one second (ns) */
-#define RANGEGATE 500000 /* range gate (ns) */
struct refclock_atom {
pps_handle_t handle;
ap->ts = pps_info.clear_timestamp;
else
return (0);
-
- /*
- * There can be zero, one or two PPS pulses between polls,
- * depending on the poll interval relative to the PPS interval.
- * The pulse must be newer and within the range gate relative
- * to the last pulse.
- */
- if (ap->ts.tv_sec <= timeout.tv_sec || abs(ap->ts.tv_nsec -
- timeout.tv_nsec) > RANGEGATE)
- return (0);
/*
* Convert to signed fraction offset and stuff in median filter.