GeoCOM Reference Manual
Theodolite Measurement and Calculation – TMC
Leica TPS1200 – Version 1.50
171
17.6.11
TMC_GetStation - getting the station coordinates of the instrument
TMC_GetStation ............................................................................................................................................................................................................................................................................
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2009
2009 ................................................................................................................................................................................................................................................................TMC_GetStation
C-Declaration
TMC_GetStation(TMC_STATION &Station)
VB-Declaration
VB_TMC_GetStation(Station As TMC_STATION)
ASCII-Request
%R1Q,2009:
ASCII-Response
%R1P,0,0:
RC,E0[double],N0[double],H0[double],Hi[double]
Remarks
This function is used to get the station coordinates of the instrument.
Parameters
Station Out
Instrument station co-ordinates [m].
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
See Also
TMC_SetStation
Example
GRC_TYPE
rc;
TMC_STATION Station, NullStation;
NullStation.dE0 = 0;
NullStation.dN0 = 0;
NullStation.dH0 = 0;
NullStation.dHi = 0;
// reset station coordinates to 0
rc = TMC_GetStation(Station);
if ((Station.dE0 != 0)||
(Station.dN0 != 0)||
(Station.dH0 != 0)||
(Station.dHi != 0))
{
rc = TMC_SetStation(NullStation);
if (rc == GRC_OK)
{
// reset of station successful
}
else
{
// reset not successful (subsystem busy)
}
}