GeoCOM Reference Manual
Basic Applications – BAP
Leica TPS1200 / TS30 / TM30 – Version 1.50
83
GRC_ABORT
8
Error, measurement aborted
GRC_COM_TIMEDOUT
3077
Error, communication timeout. (possibly increase
COM
timeout
, see
COM_SetTimeout
)
GRC_IVPARAM
2
Error, invalid
DistMode
GRC_SHUT_DOWN
12
Error, system stopped
See Also
-
Example
void MyMeasurement(BAP_MEASURE_PRG DistMode)
{
GRC_TYPE Result;
BAP_MEASURE_PRG DistMode;
double dHz, dV, dDist;
DistMode = BAP_DEF_DIST
Result = BAP_MeasDistanceAngle(DistMode,
dHz, dV, dDist);
if (rc != GRC_OK)
{ // error-handling
switch (rc)
{
case GRC_IVPARAM:
printf("Wrong value for DistMode!");
break;
case GRC_ABORT:
printf("Measurement aborted!");
break;
case GRC_SHUT_DOWN:
printf("System has been stopped!");
break;
case GRC_TMC_DIST_PPM:
printf("PPM or MM should be switched off");
printf(" when EDM is on -> no results!“);
break;
case GRC_TMC_DIST_ERROR:
printf("Error occured during");
printf(" distance measurement!");
break;
case GRC_TMC_ANGLE_ERROR:
printf("Error occured while slope");
printf(" was measured!");
break;
case GRC_TMC_BUSY:
printf("TMC is busy!");
break;
case GRC_TMC_ANGLE_OK:
printf("Angle without coordinates!")
break;
} // end of switch (rc)
} // end of error handling
else
{ // use results
printf("horizontal angel [rad]: %d\n", dHz);
printf("vertical angel [rad] : %d\n", dV);
printf("slopedistance [rad] : %d\n", dDist);
}
} //end of MyMeasurement