| 160 | } |
| 161 | |
| 162 | void GPSTracker::add_initial_file_data(File file) { |
| 163 | file.println("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" standalone=\"yes\"?>"); |
| 164 | file.println("<?xml-stylesheet type=\"text/xsl\" href=\"details.xsl\"?>"); |
| 165 | file.println("<gpx"); |
| 166 | file.println(" version=\"1.1\""); |
| 167 | file.println(" creator=\"Bruce Firmware\""); |
| 168 | file.println(" xmlns=\"http://www.topografix.com/GPX/1/1\""); |
| 169 | file.println(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""); |
| 170 | file.println( |
| 171 | " xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd\"" |
| 172 | ); |
| 173 | file.println(">"); |
| 174 | file.println(" <metadata>"); |
| 175 | file.println(" <name>Bruce GPS Tracker</name>"); |
| 176 | file.println(" <desc>GPS Tracker using Bruce Firmware</desc>"); |
| 177 | file.println(" <link href=\"https://bruce.computer\">"); |
| 178 | file.println(" <text>Bruce Website</text>"); |
| 179 | file.println(" </link>"); |
| 180 | file.println(" </metadata>"); |
| 181 | file.println(" <trk>"); |
| 182 | file.println(" <name>Bruce Route</name>"); |
| 183 | file.println(" <desc>GPS route captured by Bruce firmware</desc>"); |
| 184 | file.println(" <trkseg>"); |
| 185 | } |
| 186 | |
| 187 | void GPSTracker::add_final_file_data() { |
| 188 | FS *fs; |