Recording GPS
Hi
Your Idea has been implemented (like most of the good ideas) :
this is a code fraction for the recording of the parameters:
If flag.recording = -2 Then
record_line(line) = t_time & "," & t_date & "," & t_speed & "," & t_track & "," & temp_long & "," & t_EW & "," & temp_lat & "," & t_NS & "," & t_alt & "," & t_sat
lineno.Text = line
If line < 2998 Then line = line + 1
End If
all the lines of parameters are stored in an array and if the user want to save - it is written to a file using the following sub:
Sub SavePB_Click
StopM_Click
SaveDialog1.Filter = "PlayBack files|*.rec"
If SaveDialog1.Show <> cCancel Then
WaitCursor (True)
PBfile = SaveDialog1.File
FileOpen(c20,pbfile,cwrite)
line = 0
Do
line = line + 1
FileWrite(c20,record_line(line))
Loop Until record_line(line) = "RECORD END"
FileClose(c20)
line = 1
WaitCursor (false)
Else
Return
End If
End Sub
I don't place this recording on the map because it will take too much runtime resources (lines are recorded every few seconds), but I can put on the moving map a route, made by connecting way-points with a line, while each way-point is drawn by a small circle, see photo attached.