CARMA C++
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
clocksync.h
1
#ifndef clocksync_h
2
#define clocksync_h
3
4
/*
5
* The UDP port on which the SZA clocksync daemon listens for time updates.
6
*/
7
#define SZA_TIME_PORT 5435
8
9
/*
10
* The following parameter tells the tracker how often to send time
11
* updates.
12
*/
13
#define TIME_UPDATE_INTERVAL 10
/* (integer seconds) */
14
15
/*
16
* The following parameter tells the clocksync program how many time
17
* updates to accumulate before computing a median clock offset and
18
* using it to adjust the clock. The time between clock updates will
19
* thus be (TIME_UPDATE_INTERVAL * TIME_UPDATE_COUNT) seconds. Since
20
* the clock doesn't drift very quickly, the time between clock
21
* updates should probably be around an hour. Note that this sets the
22
* size of an array that is sorted to determine the median offset, so
23
* beware of making it too large.
24
*/
25
#define TIME_UPDATE_COUNT 360
26
27
/*
28
* If the time offset computed from an individual time update, is
29
* greater than the following number of seconds, reject it.
30
*/
31
#define MAX_CLOCK_OFFSET 600
/* Integer seconds */
32
33
/*
34
* Specify the length of time that the tracker task should wait for
35
* the time code reader to phase-lock to the GPS clock before sending
36
* its first time update.
37
*/
38
#define TIME_START_DELAY 180
/* Integer seconds */
39
40
#endif
carma
szaarrayutils
clocksync.h
Generated by
1.8.5