GeoCOM Reference Manual
Theodolite Measurement and Calculation – TMC
Leica TPS1200 – Version 1.50
160
17.6
DATA SETUP FUNCTIONS
17.6.1
TMC_GetHeight - returning the current reflector height
TMC_GetHeight.........................................................................................................................................................................................................................................................................
2011 ................................................................................................................................................................................................................................................................TMC_GetHeigh
C-Declaration
....
t
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2011
TMC_GetHeight(TMC_HEIGHT &Height)
VB-Declaration
VB_TMC_GetHeight(Height As TMC_HEIGHT)
ASCII-Request
%R1Q,2011:
ASCII-Response
%R1P,0,0:
RC,Height[double]
Remarks
This function returns the current reflector height.
Parameters
Height Out
Current reflector height [m]
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
See Also
TMC_SetHeight
Example
GRC_TYPE
rc;
TMC_HEIGHT
Height, NewHeight;
// reset reflector height to 0
// if it is not already
rc = TMC_GetHeight(Height);
if (Height.dHr != 0)
{
NewHeight.dHr = 0;
rc = TMC_SetHeight(NewHeight);
if (rc == GRC_OK)
{
// set of height successful
}
else
{
// TMC is busy, no set possible
}
}