- Code: Select all
' write the date...
Gps.GetField(rmc, 8, data)
SD.Write(FormatDate(data), ",")
Just to see if it was an error ive added the code a second time like the following below
- Code: Select all
' get the speed - if the first speed character is greater
' than zero then open the file and record the event...
Gps.GetField(rmc, 6, speed)
if speed(0) <> "0" and SD.Append(filename) = errOK then
' write the date...
Gps.GetField(rmc, 8, data)
SD.Write(FormatDate(data), ",")
' write the time...
Gps.GetField(rmc, 0, data)
SD.Write(FormatTime(data), ",")
' write the date a second time...
Gps.GetField(rmc, 8, data)
SD.Write(FormatDate(data), ",")
' write lat and long...
SD.Write(lat, ",", lng, ",")
' now write the speed...
SD.Write(speed)
end if
The code above outputs the following to the SD Card, as you can see the Date shows as #######, anyone have any ideas what is causing this?.