GeoCOM Reference Manual
Communication Settings
Leica TPS1200 / TS30 / TM30 – Version 1.50
22
5.3
GENERAL GEOCOM FUNCTIONS
5.3.1
COM_GetDoublePrecision - getting the double precision setting
COM_GetDoublePrecision........................................................................................................................................................................................................................................................
108 .................................................................................................................................................................................................................................................................COM_GetDoubl
C-Declaration
....................
ePrecision
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 108
COM_GetDoublePrecision( short &nDigits )
VB-Declaration
VB_COM_GetDoublePrecision( nDigits As Integer )
ASCII-Request
%R1Q,108:
ASCII-Response
%R1P,0,0:RC, nDigits[short]
Remarks
This function returns the precision - number of digits to the right of the decimal point - when double floating-
point values are transmitted. The usage of this function is only meaningful if the communication is set to ASCII
transmission mode. Precision is equal in both transmission directions. In the case of an ASCII request, the
precision of the server side will be returned.
Parameters
nDigits Out
Number of digits to the right of the decimal point.
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
See Also
COM_SetDoublePrecision
Example
GRC_TYPE rc;
short nDigits, nOldDigits;
TMC_HEIGT height;
(void) COM_GetDoublePrecision(nOldDigits);
rc = COM_SetDoublePrecision(nDigits);
// nDigits > 15, nDigits < 0 -> GRC_IVPARAM
if (rc == GRC_IVPARAM)
{
rc = COM_SetDoublePrecision(7);
}
// measure height of reflector ...
// the result is precisely calculated and
// returned with nDigits to the right of the
// decimal point
(void) TMC_GetHeight(height);
// ignore return code
print(„height: %d\n“, height.dHr);
// reset server accuracy to the old value
rc = COM_SetDoublePrecision(nOldDigits);
// no error handling, because nOldDigits must be valid
Содержание TM30 Series
Страница 1: ...Leica TPS1200 Leica TS30 TM30 GeoCOM Reference Manual Version 1 50 English...
Страница 120: ...GeoCOM Reference Manual File Transfer FTR Leica TPS1200 Version 1 50 120 while bLast TRUE FTR_AbortList...
Страница 136: ...GeoCOM Reference Manual Motorisation MOT Leica TPS1200 Version 1 50 136 handle error...