[time-nuts] GPSDO simulation tool
cfo
xnews3 at luna.dyndns.dk
Sat Mar 22 16:52:15 EDT 2014
On Fri, 21 Mar 2014 14:55:34 -0700, Tom Van Baak wrote:
> Have a look and let me know what you think. The tool is gpsim1.c
> (Windows: gpsim1.exe) under:
> http://www.leapsecond.com/tools/
Nice tool Tom
I just compiled it under linux.
gcc gpsim1.c -lm -o gpsim1
I had to add min/max
#define min( a, b ) ( ( a < b) ? a : b )
#define max( a, b ) ( ( a > b) ? a : b )
Just an info ... GCC complains about this line (my 109 , your 96)
fprintf(stderr, "%s: sample count (%lg) exceeds data counts (%lg, %lg)
\n", Tool, n, gps_n, osc_n);
~/tmp/tvb-gpssim $ gcc gpsim1.c -lm -o gpsim1
gpsim1.c: In function ‘main’:
gpsim1.c:109:9: warning: format ‘%lg’ expects argument of type ‘double’,
but argument 5 has type ‘long int’ [-Wformat]
gpsim1.c:109:9: warning: format ‘%lg’ expects argument of type ‘double’,
but argument 6 has type ‘long int’ [-Wformat]
~/tmp/tvb-gpssim $ ~/tmp/tvb-gpssim $
Thanx for the nice tool
CFO
More information about the time-nuts
mailing list