User Manual Part 2

IS-900 User Guide Page 145 of 159
16.3. Usage
The API provides an extensive set of functions that can read and set tracker
configuration, but in its simplest form can be limited to just 4 calls, as shown below:
void main()
{
ISD_TRACKER_HANDLE handle;
ISD_TRACKER_INFO_TYPE tracker;
ISD_TRACKER_DATA_TYPE data;
handle = ISD_OpenTracker( NULL, 0, FALSE, FALSE );
if( handle > 0 )
printf( "\n Az El Rl X Y Z \n" );
else
printf( "Tracker not found. Press any key to exit" );
while( !kbhit() )
{
if( handle > 0 )
{
ISD_GetData( handle, &data );
printf( "%7.2f %7.2f %7.2f %7.3f %7.3f %7.3f ",
data.Station[0].Orientation[0],
data.Station[0].Orientation[1],
data.Station[0].Orientation[2],
data.Station[0].Position[0],
data.Station[0].Position[1],
data.Station[0].Position[2] );
ISD_GetCommInfo( handle, &tracker );
printf( "%5.2fKbps %d Records/s \r",
tracker.KBitsPerSec, tracker.RecordsPerSec );
}
Sleep( 6 );
}
ISD_CloseTracker( handle );
}