GeoCOM Reference Manual
Theodolite Measurement and Calculation – TMC
Leica TPS1200 – Version 1.50
186
17.8.7
TMC_IfDataAzeCorrError – returning the status if an ATR error occurs
TMC_IfDataAzeCorrError ............................................................................................................................................................................................................................................................................
CorrError
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2114
2114 ................................................................................................................................................................................................................................................................TMC_IfDataAze
C-Declaration
TMC_IfDataAzeCorrError(BOOLE& bAtrCorrectionError)
VB-Declaration
VB_TMC_IfDataAzeCorrError
(bAtrCorrectionError
As
Long)
ASCII-Request
%R1Q,2114:
ASCII-Response
%R1P,0,0:
RC,bAtrCorrectionError[long]
Remarks
This function returns the status of the ATR correction of the last measurement. If you get a return code
GRC_TMC_ANGLE_NOT_FULL_CORR or GRC_TMC_ NO_FULL_CORRECTION from a measurement
function, this function indicates whether the returned data is missing a deviation correction of the ATR or not.
Parameters
BAtrCorrectionError
Out
Flag, if ATR correction error occurred or not
FALSE
: no error occurred
TRUE
: last data record not
corrected with the ATR-
deviation
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
See Also
TMC_IfDataIncCorrError
Example
GRC_TYPE
Result;
SYSTIME
WaitTime;
TMC_INCLINE_PRG ePrgm;
double dCoordE,dCoordN,dCoordH;
TMC_DoMeasure(TMC_DEF_DIST);// execute single
// dist measurement
WaitTime=500;// set max. wait time 500 [ms]
eProg=TMC_AUTO_INC;// set automatically incline prgm
Result=TMC_GetSimpleCoord(WaitTime, dCoordE,
dCoordN,
dCoordH,eProg);
switch(Result)
{
case GRC_TMC_NO_FULL_CORRECTION:
TMC_IfDataAzeCorrError(bAzeCorrError);
TMC_IfDataIncCorrError(bIncCorrError);
if(bAzeCorrError)
{
// coordinates are not corrected with the Aze-
// deviation correction
}
if(bIncCorrError)
{
// coordinates are not corrected with the
// incline correction
}
case GRC_OK:
case GRC_TMC_ACCURACY_GUARANTEE:
// in this cases are the coordinates
//
available
break;
default:
// in all other cases are the coordinates not
// valid and set to 0
// further errorhandling