126,7 → 126,7 |
if(doc == NULL) return(0); |
|
while(doc->state != GPX_DOC_CLOSED) // close linestring, placemark and document before closing the file on the memorycard |
{ |
{ |
switch(doc->state) |
{ |
case GPX_DOC_TRACKSEGMENT_OPENED: |
310,7 → 310,7 |
// write <sat> tag |
sprintf(string, "<sat>%d</sat>\r\n", NaviData.SatsInUse); |
fputs_(string, doc->file); |
// todo: add <extensions> tag with additional data to be logged |
// todo: add <extensions> tag with additional data to be logged |
sprintf(string, "<extensions>\r\n"); |
fputs_(string, doc->file); |
// Course in deg |
347,6 → 347,9 |
// Target Distance in dm |
sprintf(string, "<TargetDistance>%d</TargetDistance>\r\n", NaviData.TargetPositionDeviation.Distance); |
fputs_(string, doc->file); |
// GPS Sticks as Nick/Roll/Yaw |
sprintf(string, "<GPSSticks>%d, %d, %d</GPSStinks>\r\n", GPS_Stick.Nick, GPS_Stick.Roll, GPS_Stick.Yaw); |
fputs_(string, doc->file); |
// eof extensions |
sprintf(string, "</extensions>\r\n"); |
fputs_(string, doc->file); |