Rev 764 | Rev 779 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 764 | Rev 777 | ||
---|---|---|---|
Line 208... | Line 208... | ||
208 | sprintf(string, "<GeoMag>%i.%1d</GeoMag>\r\n",GeoMagDec/10,abs(GeoMagDec)%10);CheckSumAndWrite(&Check16File,string, doc->file); |
208 | sprintf(string, "<GeoMag>%i.%1d</GeoMag>\r\n",GeoMagDec/10,abs(GeoMagDec)%10);CheckSumAndWrite(&Check16File,string, doc->file); |
209 | sprintf(string, "<Neutral>%d,%d,%d</Neutral>\r\n", FC.AdNeutralNick,FC.AdNeutralRoll,FC.AdNeutralYaw);CheckSumAndWrite(&Check16File,string, doc->file); |
209 | sprintf(string, "<Neutral>%d,%d,%d</Neutral>\r\n", FC.AdNeutralNick,FC.AdNeutralRoll,FC.AdNeutralYaw);CheckSumAndWrite(&Check16File,string, doc->file); |
210 | sprintf(string, "<Kalibr.>%d,%d,%d</Kalibr.>\r\n", FC.BoatNeutralNick,FC.BoatNeutralRoll,FC.BoatNeutralYaw);CheckSumAndWrite(&Check16File,string, doc->file); |
210 | sprintf(string, "<Kalibr.>%d,%d,%d</Kalibr.>\r\n", FC.BoatNeutralNick,FC.BoatNeutralRoll,FC.BoatNeutralYaw);CheckSumAndWrite(&Check16File,string, doc->file); |
211 | if((FC.StatusFlags3 & FC_STATUS3_BOAT)) {sprintf(string, "<BoatMode>On</BoatMode>\r\n");CheckSumAndWrite(&Check16File,string, doc->file);} |
211 | if((FC.StatusFlags3 & FC_STATUS3_BOAT)) {sprintf(string, "<BoatMode>On</BoatMode>\r\n");CheckSumAndWrite(&Check16File,string, doc->file);} |
212 | if(Parameter.Driftkomp) {sprintf(string, "<DriftComp>%i</DriftComp>\r\n",Parameter.Driftkomp);CheckSumAndWrite(&Check16File,string, doc->file);}; |
212 | if(Parameter.Driftkomp) {sprintf(string, "<DriftComp>%i</DriftComp>\r\n",Parameter.Driftkomp);CheckSumAndWrite(&Check16File,string, doc->file);}; |
213 | - | ||
- | 213 | sprintf(string, "<BaroKompens.>%d</BaroKompens.>\r\n",LuftdruckTemperaturKompensation);CheckSumAndWrite(&Check16File,string, doc->file); |
|
- | 214 | sprintf(string, "<FcTemperat.>%d.%1d</FcTemperat.>\r\n",FC_Temperatur/10,abs(FC_Temperatur)%10);CheckSumAndWrite(&Check16File,string, doc->file); |
|
214 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
215 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
215 | // Magnetometer |
216 | // Magnetometer |
216 | if(Compass_I2CPort == NCMAG_PORT_EXTERN) sprintf(string, "<MagSensor>external2,(%i),",NCMAG_Orientation); |
217 | if(Compass_I2CPort == NCMAG_PORT_EXTERN) sprintf(string, "<MagSensor>external2,(%i),",NCMAG_Orientation); |
217 | else if(NCMAG_Compass_use_Orientation) sprintf(string, "<MagSensor>external1,(%i),",NCMAG_Orientation); |
218 | else if(NCMAG_Compass_use_Orientation) sprintf(string, "<MagSensor>external1,(%i),",NCMAG_Orientation); |
218 | else sprintf(string, "<MagSensor>internal,"); |
219 | else sprintf(string, "<MagSensor>internal,"); |
Line 293... | Line 294... | ||
293 | break; |
294 | break; |
Line 294... | Line 295... | ||
294 | 295 | ||
295 | case GPX_DOC_OPENED: // close the file on the memorycard |
296 | case GPX_DOC_OPENED: // close the file on the memorycard |
296 | if(doc->file != NULL) |
297 | if(doc->file != NULL) |
- | 298 | { |
|
- | 299 | sprintf(string, "<!-- FcTemperature:%d.%1d -->\r\n",FC_Temperatur/10,abs(FC_Temperatur)%10); |
|
- | 300 | fputs_(string, doc->file); |
|
297 | { |
301 | |
298 | sprintf(string, "<!-- %d -->\r\n", Check16File); |
302 | sprintf(string, "<!-- %d -->\r\n", Check16File); |
299 | fputs_(string, doc->file); |
- | |
300 | 303 | fputs_(string, doc->file); |
|
- | 304 | fwrite_((void*)GPX_DOCUMENT_FOOTER, sizeof(GPX_DOCUMENT_FOOTER)-1,1,doc->file); // write the gpx-footer to the document. |
|
301 | fwrite_((void*)GPX_DOCUMENT_FOOTER, sizeof(GPX_DOCUMENT_FOOTER)-1,1,doc->file); // write the gpx-footer to the document. |
305 | |
302 | fclose_(doc->file); |
306 | fclose_(doc->file); |
303 | retvalue = 1; |
307 | retvalue = 1; |
304 | } |
308 | } |
305 | doc->state = GPX_DOC_CLOSED; |
309 | doc->state = GPX_DOC_CLOSED; |
Line 696... | Line 700... | ||
696 | } |
700 | } |
697 | */ |
701 | */ |
698 | // Navigation Update speed (in 0.1Hz) |
702 | // Navigation Update speed (in 0.1Hz) |
699 | sprintf(string, "<GPSInfo>%d,%d,%d</GPSInfo>\r\n",FreqNewGpsData,GPSData.Flags,GPSData.SatFix); // FreqGpsNavProcessed |
703 | sprintf(string, "<GPSInfo>%d,%d,%d</GPSInfo>\r\n",FreqNewGpsData,GPSData.Flags,GPSData.SatFix); // FreqGpsNavProcessed |
700 | CheckSumAndWrite(&Check16Block,string, doc->file); |
704 | CheckSumAndWrite(&Check16Block,string, doc->file); |
- | 705 | ||
- | 706 | // sprintf(string, "<FCTemperat>%d</FCTemperat>\r\n",FC_Temperatur); |
|
- | 707 | // CheckSumAndWrite(&Check16Block,string, doc->file); |
|
- | 708 | ||
701 | // eof extensions |
709 | // eof extensions |
702 | sprintf(string, "</extensions>\r\n"); |
710 | sprintf(string, "</extensions>\r\n"); |
703 | CheckSumAndWrite(&Check16Block,string, doc->file); |
711 | CheckSumAndWrite(&Check16Block,string, doc->file); |
704 | sprintf(string, "</trkpt>\r\n"); |
712 | sprintf(string, "</trkpt>\r\n"); |
705 | CheckSumAndWrite(&Check16Block,string, doc->file); |
713 | CheckSumAndWrite(&Check16Block,string, doc->file); |