
GeoBASIC User Manual
9 — Refined GeoBASIC Concepts
TPS1100-Version 2.10
9-1
9 R
EFINED
G
EO
BASIC C
ONCEPTS
In GeoBASIC several concepts are implemented to utilise and standardise
programming and applications.
9.1 UNITS
Working with units always gives rise to the problem that different users want to
work with different units. In geodesy, take the vertical angle as an example: some
surveyors measure in Gon, some in radians, others in percentages. And, in addition
to the unit-problem, there is the question where to fix the zero point of some scale.
Again for the vertical angle example: some surveyors want to have zenith angles,
some nadirs, some something in between.
To cope with this situation there is a fine automatic unit handling system built in
the theodolite system, and the GeoBASIC programmer can take full advantage of
it. All that has to be done in a GeoBASIC
program, is to keep all values in SI units
and, when a value has to be displayed specify what kind of value it is: a horizontal
angle, a vertical angle, a distance, a temperature, etc. All the formatting, together
with choice of the right representation (the user may define this in his theodolite
system configuration with which the GeoBASIC programmer is not concerned),
and displaying the unit after the value are handled automatically. (Of course the
programmer can also decide
not
to use this automation and handle everything on
his own. But values obtained from the system will be in SI units anyway.)
9.1.1
What the GeoBASIC programmer has to do
•
Use SI units throughout the program. All computations are done with values
in SI units.
•
When displaying, specify the correct data type i.e.
Distance
for the value is
displayed. See description of the
MMI_PrintVal
function in the "Reference
Manual".
We will give an example of measuring an horizontal angle, computing the
difference to a given angle, and displaying the difference on the display. (Note that
we use the
GetAngleHz
routine from the
MeanHz
program (see 10.1), and we
assume that a text dialog has been opened properly. The angle difference is
normalised to the range 0 to 2
×π
.)
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...