These two statements produce the same result. Here we briefly introduce the PRINT statement
(described in more detail later); when used in a PROGRAM that is running in DEBUG mode or
RUN mode, it prints the prescribed string to the terminal screen. It’s very useful when coding, to
test the code. PRINT can also be used in the Command line application and is interpreted
immediately.
Notes:
1. FS and FR commands are read/write, however writing them does not generally make much
sense and should be done only with extreme caution; it should be left to the GPS calibration
functions to accurately set system and reference frequencies.
2. All variables relating to GPS information, hold the value obtained from the most recent GPS
statement.
3. SD and ST variables are set to 1 when the date and time (respectively) are obtained from
the GPS. They remain at 1 for the rest of the operating session, until the power is switched
off.
4. Reading the temperature variable (TK) causes the system to immediately read the current
temperature from the onboard LM75 temperature sensor. Therefore every time you read
this variable, the value returned may potentially be different.
5. The Telemetry temperature variable (TT) is set during the GPS statement, to the value read
from the onboard temperature sensor. By default this will be encoded into the transmission
sent by the TELE (telemetry) command. However, there may be occasions when you wish
to transmit a different temperature in the telemetry. An example of this could be, that you
have provided an external temperature sensor that is outside thermal insulation, and you
want that value to be encoded into the telemetry rather than the warmer reading from the
onboard sensor.
6. There are even more variables available, as #-tags in strings. Some of these can provide
information to your program that is not available from the list of variables above; such as
latitude and longitude, for example. These variables are detailed in the next section.
4.3 Tags in strings
A string can contain tags that are substituted with variables. This is a useful way to output
information from the GPS and other variables. The string can be used for transmission (CW
message for example), or for the PRINT statement, writing to files, etc.
Tag substitution is specified by the two character tag code preceded by a #. For example
PRINT “#LT”
prints the latitude to the terminal, for example:
5130.0517 N
The following table lists available tag codes:
Code
Example
Contents
A0
1864
Analog channel 0, value 0 to 4095 for voltage 0-3.3V
A1
2055
Analog channel 1, value 0 to 4095 for voltage 0-3.3V
A2
1906
Analog channel 2, value 0 to 4095 for voltage 0-3.3V
U4B operating manual Rev 1.00
25
Содержание U4B Ultimate4
Страница 54: ...U4B operating manual Rev 1 00 54...