FreeBSD/contrib/ntp/ntpd/refclock_ripencc.c
/* position in lat-lon-alt, single precision */
position in lat-lon-alt, single precision
position in lat - lon - alt single precision
short
rpt_0x4A(
	 TSIPPKT *rpt,
	 float *lat,
	 float *lon,
	 float *alt,
	 float *clock_bias,
	 float *time_of_fix
	 )
{
	unsigned char *buf;
	buf = rpt->buf;
	if (rpt->len != 20) return TRUE;
	*lat = bGetSingle (buf);
	*lon = bGetSingle (&buf[4]);
	*alt = bGetSingle (&buf[8]);
	*clock_bias = bGetSingle (&buf[12]);
	*time_of_fix = bGetSingle (&buf[16]);
	return FALSE;
}
short rpt_0x4A ( TSIPPKT * rpt , float * lat , float * lon , float * alt , float * clock_bias , float * time_of_fix ) { unsigned char * buf ; buf = rpt -> buf ; if ( rpt -> len != 20 ) return TRUE ; * lat = bGetSingle ( buf ) ; * lon = bGetSingle ( & buf [ 4 ] ) ; * alt = bGetSingle ( & buf [ 8 ] ) ; * clock_bias = bGetSingle ( & buf [ 12 ] ) ; * time_of_fix = bGetSingle ( & buf [ 16 ] ) ; return FALSE ; }
position in lat-lon-alt, single precision
position in lat - lon - alt single precision