GeoCOM Reference Manual
Theodolite Measurement and Calculation – TMC
Leica TPS1200 – Version 1.50
169
17.6.9
TMC_GetRefractiveMethod – getting the refraction model
TMC_GetRefractiveMethod...............................................................................................................................................................................................................................................................................
tiveMethod
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2091
2091 ................................................................................................................................................................................................................................................................TMC_GetRefrac
C-Declaration
TMC_GetRefractiveMethod(unsigned short &Method)
VB-Declaration
VB_TMC_GetRefractiveMethod(Method As Integer)
ASCII-Request
%R1Q,2091:
ASCII-Response
%R1P,0,0:
RC,Method[unsigned short]
Remarks
This function is used to get the current refraction model. Note that changing the refraction method is not
indicated on the instrument’s interface.
Parameters
Method Out
Refraction data:
Method
= 1 means method 1 (for the rest of the world)
Method
= 2 means method 2 (for Australia)
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
See Also
TMC_SetRefractiveMethod
Example
const unsigned short
RefractiveMethod = 1;
GRC_TYPE
rc;
unsigned short
Method;
// set the refractive methode to 1
// if it is not already
rc = TMC_GetRefractiveMethod(Method);
if (Method != RefractiveMethod)
{
rc = TMC_SetRefractiveMethod(RefractiveMethod);
if (rc == GRC_OK)
{
// set of refractive methode successful
}
else
{
// set not successful (subsystem busy)
}
}