FreeBSD/contrib/ntp/ntpd/refclock_ripencc.c
/* velocity in east-north-up coordinates */
velocity in east-north-up coordinates
velocity in east - north - up coordinates
short
rpt_0x56(
	 TSIPPKT *rpt,
	 float vel_ENU[3],
	 float *freq_offset,
	 float *time_of_fix
	 )
{
	unsigned char *buf;
	buf = rpt->buf;
	if (rpt->len != 20) return TRUE;
	vel_ENU[0] = bGetSingle (buf);
	vel_ENU[1] = bGetSingle (&buf[4]);
	vel_ENU[2] = bGetSingle (&buf[8]);
	*freq_offset = bGetSingle (&buf[12]);
	*time_of_fix = bGetSingle (&buf[16]);
	return FALSE;
}
short rpt_0x56 ( TSIPPKT * rpt , float vel_ENU [ 3 ] , float * freq_offset , float * time_of_fix ) { unsigned char * buf ; buf = rpt -> buf ; if ( rpt -> len != 20 ) return TRUE ; vel_ENU [ 0 ] = bGetSingle ( buf ) ; vel_ENU [ 1 ] = bGetSingle ( & buf [ 4 ] ) ; vel_ENU [ 2 ] = bGetSingle ( & buf [ 8 ] ) ; * freq_offset = bGetSingle ( & buf [ 12 ] ) ; * time_of_fix = bGetSingle ( & buf [ 16 ] ) ; return FALSE ; }
velocity in east-north-up coordinates
velocity in east - north - up coordinates
/* east */ /* north */ /* up */