FreeBSD/contrib/ntp/ntpd/refclock_ripencc.c
/* position, lat-lon-alt double precision */
position, lat-lon-alt double precision
position lat - lon - alt double precision
short
rpt_0x84(
	 TSIPPKT *rpt,
	 double *lat,
	 double *lon,
	 double *alt,
	 double *clock_bias,
	 float *time_of_fix
	 )
{
	unsigned char *buf;
	buf = rpt->buf;
	if (rpt->len != 36) return TRUE;
	*lat = bGetDouble (buf);
	*lon = bGetDouble (&buf[8]);
	*alt = bGetDouble (&buf[16]);
	*clock_bias = bGetDouble (&buf[24]);
	*time_of_fix = bGetSingle (&buf[32]);
	return FALSE;
}
short rpt_0x84 ( TSIPPKT * rpt , double * lat , double * lon , double * alt , double * clock_bias , float * time_of_fix ) { unsigned char * buf ; buf = rpt -> buf ; if ( rpt -> len != 36 ) return TRUE ; * lat = bGetDouble ( buf ) ; * lon = bGetDouble ( & buf [ 8 ] ) ; * alt = bGetDouble ( & buf [ 16 ] ) ; * clock_bias = bGetDouble ( & buf [ 24 ] ) ; * time_of_fix = bGetSingle ( & buf [ 32 ] ) ; return FALSE ; }
position, lat-lon-alt double precision
position lat - lon - alt double precision