Rev 670 | Rev 686 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 670 | Rev 676 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | #include "led.h" |
68 | #include "led.h" |
69 | #include "timer2.h" |
69 | #include "timer2.h" |
70 | #include "logging.h" |
70 | #include "logging.h" |
71 | #include "ncmag.h" |
71 | #include "ncmag.h" |
72 | #include "uart0.h" |
72 | #include "uart0.h" |
- | 73 | #include "settings.h" |
|
Line 73... | Line 74... | ||
73 | 74 | ||
74 | //________________________________________________________________________________________________________________________________________ |
75 | //________________________________________________________________________________________________________________________________________ |
75 | // Function: GPX_DocumentInit(GPX_Document_t *) |
76 | // Function: GPX_DocumentInit(GPX_Document_t *) |
76 | // |
77 | // |
Line 101... | Line 102... | ||
101 | u8 GPX_DocumentOpen(s8 *name, GPX_Document_t *doc) |
102 | u8 GPX_DocumentOpen(s8 *name, GPX_Document_t *doc) |
102 | { |
103 | { |
103 | s8 string[200]; |
104 | s8 string[200]; |
104 | u8 retvalue = 0; |
105 | u8 retvalue = 0; |
105 | u8 BLv = 1; |
106 | u8 BLv = 1; |
- | 107 | u16 gps_receive_config; |
|
106 | LicenseS_t *tmp_license; |
108 | LicenseS_t *tmp_license; |
107 | tmp_license = (LicenseS_t *) LicensePtr; |
109 | tmp_license = (LicenseS_t *) LicensePtr; |
Line 108... | Line 110... | ||
108 | 110 | ||
109 | if(doc == NULL) return(0); |
111 | if(doc == NULL) return(0); |
Line 124... | Line 126... | ||
124 | if(FC.StatusFlags3 & FC_STATUS3_REDUNDANCE_AKTIVE) sprintf(string, " (Redundant)</desc>\r\n"); |
126 | if(FC.StatusFlags3 & FC_STATUS3_REDUNDANCE_AKTIVE) sprintf(string, " (Redundant)</desc>\r\n"); |
125 | else sprintf(string, "</desc>\r\n"); |
127 | else sprintf(string, "</desc>\r\n"); |
126 | fputs_(string, doc->file); |
128 | fputs_(string, doc->file); |
127 | sprintf(string, "<extensions>\r\n"); fputs_(string, doc->file); |
129 | sprintf(string, "<extensions>\r\n"); fputs_(string, doc->file); |
128 | sprintf(string, "<MK_Time>%imin</MK_Time>\r\n",FlugMinutenGesamt);fputs_(string, doc->file); |
130 | sprintf(string, "<MK_Time>%imin</MK_Time>\r\n",FlugMinutenGesamt);fputs_(string, doc->file); |
- | 131 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
|
129 | sprintf(string, "<GpsVersion>%d.%03d</GpsVersion>\r\n",GPS_Version/1000,GPS_Version%1000);fputs_(string, doc->file); |
132 | sprintf(string, "<GpsVersion>%d.%03d</GpsVersion>\r\n",GPS_Version/1000,GPS_Version%1000);fputs_(string, doc->file); |
- | 133 | if(GPS_Version >= 3000) |
|
- | 134 | { |
|
- | 135 | Settings_GetParamValue(PID_GPS_SYSTEM_CFG,&gps_receive_config); |
|
- | 136 | sprintf(string, "<GNSS_System>%d</GNSS_System>\r\n",gps_receive_config); |
|
- | 137 | fputs_(string, doc->file); |
|
- | 138 | } |
|
130 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
139 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
131 | sprintf(string, "<License>\r\n"); fputs_(string, doc->file); |
140 | sprintf(string, "<License>\r\n"); fputs_(string, doc->file); |
132 | if(tmp_license->User[0] != 0) |
141 | if(tmp_license->User[0] != 0) |
133 | { |
142 | { |
134 | sprintf(string, "<name>%s</name>\r\n",tmp_license->User); fputs_(string, doc->file); |
143 | sprintf(string, "<name>%s</name>\r\n",tmp_license->User); fputs_(string, doc->file); |