Chapter 6
Graphical User Interface
This chapter introduces a logical description of a Matlab graphics user interface (GUI) studied to setup and control the tracking process. This GUI is capable of proceding and converting binary data packets, which represent the GIB packets, in a GIBdata structure. The binary packets contain the TOA collected at each of the hydrophones and the buoy positions given by the respective GPS receivers, and other information that describes the system status. A typical G.I.B. cycle has a rate of one second and this characteristic justifies the use of a Matlab-based software with a conventional PC.
In Figure 6.1 a logical description of the graphical user interface is given. The software can operate with G.I.B. log file or directly connected on a serial port. First operative mode is known as Replay Mode, and the second one is called Real-Time Mode. The main blocks are Read Binary Data, and Tracking Algorithm. The tracking block is already described in Figure 5.1, the read block is described in Figure 6.2.
First block, in Figure 6.2, depicts a synchronization on packet header, when a packet header is detected the reading procedure starts. The Read Bytes block is a conventional binary reading procedure. The main block is represented by the conversion block from longitude/latitude/altitude (LLA) coordinates to North East Down (NED) coordinates, a detailed description of the coordinate transformation procedure adopted in this thesis is given in paragraph C.
Chapter 6. Graphical User Interface
algorithm results Store Serial Port
Binary Data File
Selector
Read Binary Data structure data to GIBData Conversion Binary
memory Store in GUI data Tracking Algorithm Display Data Buoy Position Trajectory AUV information System
Figure 6.1: GUI logical scheme.
Chapter 6. Graphical User Interface
lon/lat
ned
Buoy Position:
Start
ready to store
GIBData
Waiting for
GIB Header
Read Bytes
Checksum
match?
Yes
No
End
Figure 6.2: Read Binary Data block.