doc_for_4071_GPSInformation-20110803.txt

some documentation - Steven Mizuno, 2011-08-10 07:59 AM

Download (9.08 KB)

 
1
outline of documentation for GPS Information widget
2
Steven Mizuno
3
8/3/2011
4

    
5
Conventions used here: 
6
	[some text] shows the control label; for buttons with icon faces this is the ToolTip displayed
7
	Indentation is used to show subordinate controls of another control.
8
	Generally, a short description of the control follows each label.
9

    
10
The control ordering is left to right and top to bottom. All controls for a page are shown under the page's button.
11

    
12
================
13
The controls of the GPS Information dock widget:
14

    
15
[Add feature] button to add a feature to a map layer; is labeled with the feature type for the selected map layer and is enabled when a suitable layer is selected and is in editing mode
16

    
17
[Quick status] color indicator for a quick glance at GPS position status - green, yellow, red, gray for good or 3D fix, good 2D fix, no fix, no data/GPS disconnected respectively
18

    
19
[Add track point] button manually adds the current GPS position to the track. Is enabled if [Automatically add track points] is off
20

    
21
[Reset track] button clears the track
22

    
23

    
24
[Position] button selects the Position page where GPS data are displayed
25

    
26
	[Latitude] latitude of position fix
27

    
28
	[Longitude] longitude of position fix
29

    
30
	[Altitude] antenna altitude with respect to geoid (mean sea level)
31

    
32
	[Time of fix] time of the position fix
33

    
34
	[Speed] speed over ground
35

    
36
	[Direction] nominally course over ground
37

    
38
	[HDOP] horizontal dilution of precision
39

    
40
	[VDOP] vertical dilution of precision
41

    
42
	[PDOP] position dilution of precision
43

    
44
	[Mode] Automatic or Manual 2D/3D GPS configuration
45

    
46
	[Dimensions] 3D, 2D, No fix
47

    
48
	[Quality] Differential, Non-differential, No position
49

    
50
	[Status] Valid, Invalid position fix
51
	
52
	[Satellites] number of satellites used in the position fix
53

    
54

    
55
[Signal] button selects the Signal strength graph page
56

    
57
	bar graph showing satellite signal strength
58

    
59

    
60
[Satellites] button selects the Satellites location graph page
61

    
62
	polar graph showing satellite locations in the sky
63

    
64

    
65
[Options] button selects the Options page for configuring various settings
66

    
67
	[Connection] group to choose the GPS device connection method
68

    
69
		[Autodetect] automatically detects the GPS device (gpsd localhost or serial) on Connect
70

    
71
		[Serial device] specify a serial device from the list to use
72

    
73
			[Serial device list] drop-down list of detected ports
74

    
75
			[Refresh serial device list] refreshes the list of devices
76

    
77
		[gpsd] specify a gpsd data source to use
78

    
79
			[Host]
80

    
81
			[Port]
82

    
83
			[Device]
84

    
85
	[Digitizing] group for feature and track settings
86

    
87
		[Automatically save added feature] enables saving the map layer after each feature is added
88

    
89
		[Track] group for track settings
90

    
91
			[Automatically add points] enable adding track points on valid GPS position fix
92

    
93
			[Width] spin box to set the track width in pixels
94

    
95
			[Color] button to choose the track color
96

    
97
	[Cursor] enables the GPS cursor to show current position
98

    
99
		[size] slider sets the cursor size
100

    
101
	[Map centering] group to choose when the map is centered
102

    
103
		[Always] centers the map on every position fix
104

    
105
		[when leaving] centers the map when the position moves outside a specified percentage of the map extent
106

    
107
			[ % of map extent] sets the percentage of map extent
108

    
109
		[Never] never center the map
110

    
111
	[Log file] enables logging of GPS data (all NMEA sentences sent by GPS)
112

    
113
		[log file] the name of the file that records the GPS data
114

    
115
		[...] browse for log file to save GPS data to
116

    
117

    
118
[Connect]/[Disconnect] button initiates connection to a GPS device as specified in the Connection group of the Options page. Once the GPS device is connected it changes to Disconnect to end the connection to the GPS device.
119

    
120
================
121
Operation:
122

    
123
Showing or hiding the GPS Information dock widget: on the View menu, Panels choose GPS Information to show/hide it alternately. 
124
It can also be found on the main window context menu (right-click on a blank are of the menu bar, for example). 
125
The position and size of the window as well as whether docked or floated are saved when QGIS is closed and restored the next time.
126

    
127

    
128
When a GPS device is connected the Connection and Log file groups are disabled to prevent making changes that could be confusing as they don't affect the current connection.
129
Connection status messages are displayed in the main window's status bar.
130
	Connecting to GPS device...
131
	Connected to GPS device.
132
	Disconnected from GPS device.
133
	Error opening log file.
134
The Position page fields are cleared on Connect to give a better indication that a new session has been started. After disconnect the last GPS data are still displayed.
135

    
136

    
137
The Quick status indicator is used to show GPS position fix status at a glance:
138
	green		good or 3D fix 
139
	yellow		good 2D fix 
140
	red		no fix or bad fix 
141
	gray		no data/GPS disconnected
142
The yellow indication is shown only if 2D information is available.
143

    
144

    
145
The Add feature button is used to add a feature based on the current GPS position (point) or track (line, polygon) to a map layer. 
146
This button has an accelerator key (Alt+A in English) to aid in using the keyboard to add a feature.
147
The button is labeled with the feature type for the selected map layer and is enabled when a suitable layer is selected and the layer is in editing mode.
148

    
149
If a point feature is being added the track will continue to accumulate points if Automatically add points is on.
150

    
151
If a line or polygon feature is added the track is used and is cleared on adding the feature. 
152
Track points are not added while the Attributes dialog is displayed.
153
If the Attributes dialog is cancelled the track is not cleared and resumes accumulating points. 
154

    
155
The Add track point button is used to manually add the current GPS position to the track when the Automatically add track points option is off.
156

    
157
Note that the track object displayed is stored in map CRS coordinates. This may cause incorrect location of the track if the map CRS is changed after a track exists. It is best to set the map CRS before connecting to the GPS device.
158
The stored points are in WGS 84 coordinates and are transformed to the map layer CRS when the feature is added.
159
(This is rather technical and the user shouldn't have to think about it.)
160

    
161
The Add feature and Add track point buttons are not disabled if the GPS is not connected or no fix is being reported. This is to allow adding a feature or track point after the GPS is disconnected.
162
It is up to the user to determine when to add the feature or point.
163

    
164
The Reset track button clears the track.
165

    
166
Something to keep in mind: the track is an object drawn on top of the map. It is not a feature of a map layer until it is added to the layer. Then it is just another feature of the layer, and a new track is started.
167

    
168

    
169
The Connect / Disconnect button also has an accelerator key (Alt+C in English) assigned.
170

    
171

    
172
Except for the Log file options, all settings on the Options page are saved and then restored the next time QGIS is started.
173

    
174

    
175
The Log file must be set before connecting to a GPS device as the file will be opened when the GPS is connected and closed when the GPS is disconnected.
176
At present the log file capability is very basic, with minimal error handling. 
177
The browse button must be used to choose a file as the text box where the file name is displayed is not editable due to no name validity checking being done.
178
Data are appended to the file chosen with a ==== marker placed each time the GPS is connected.
179

    
180

    
181
Keyboard use: tab order - initially focus is set to the Position page button, then progresses to buttons to the right up through Connect, then Add feature, Add track point, Reset track. Then all buttons on the currently displayed page. Note that the scroll bar also can be tabbed to.
182
The Options page is displayed initially. The reason for this is to verify GPS connection and other settings, then usually to select the Position page, then tab to Connect and activate this to establish connection to the GPS device. Then tab to Add feature for convenience. The space bar can be used to activate each button.
183
(This order seems most logical to me.)
184
Accelerator keys are assigned to Add feature and Connect buttons for ease of use.
185

    
186

    
187
Message boxes are kept to a minimum by enabling and disabling various controls so they are available to use only when conditions are correct. 
188
Mainly, the message boxes popped have to do with not enough points in the track for adding line (2 necessary) or polygon (3 necessary) features, and a potential for a forward transform error if adding a track point before the GPS reports a valid fix.
189

    
190

    
191
Closing QGIS will disconnect the GPS device and close the log file. There is no opportunity given to save the current track.
192

    
193

    
194
================
195
Technical information for advanced users:
196

    
197
There is a setting [as in the Windows registry] 
198
	gps/dateTimeFormat 
199
which may be used to set a different date/time format string.
200
There is currently no place provided to set this in the GPS Information widget.
201

    
202
An example to show thousandths of a second:  ddd MMMM d yyyy hh:mm:ss.zzz
203
This may be useful if a GPS receiver outputs position fixes two or more times per second.
204