Subversion Repositories Projects

Rev

Rev 426 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 426 Rev 434
Line -... Line 1...
-
 
1
// all constant strings are within the flash to save space in the sram
-
 
2
#include <avr/pgmspace.h>
1
//________________________________________________________________________________________________________________________________________
3
//________________________________________________________________________________________________________________________________________
2
//
4
//
3
// Definition of gpx-header and footer elements for documents
5
// Definition of gpx-header and footer elements for documents
4
//
6
//
5
//________________________________________________________________________________________________________________________________________
7
//________________________________________________________________________________________________________________________________________
6
 
8
 
7
 
9
 
8
const int8_t GPX_DOCUMENT_HEADER[] =
10
const prog_char GPX_DOCUMENT_HEADER[] =
9
{
11
{
10
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\r\n"
12
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\r\n"
11
"<gpx creator=\"NC\" version=\"1.0\" >\r\n"
13
"<gpx creator=\"NC\" version=\"1.0\" >\r\n"
12
"\r\n"
14
"\r\n"
13
"<metadata>\r\n"
15
"<metadata>\r\n"
Line 21... Line 23...
21
//________________________________________________________________________________________________________________________________________
23
//________________________________________________________________________________________________________________________________________
22
//
24
//
23
// footer of an gpx-file.
25
// footer of an gpx-file.
24
//
26
//
25
//________________________________________________________________________________________________________________________________________
27
//________________________________________________________________________________________________________________________________________
26
const int8_t GPX_DOCUMENT_FOOTER[] =
28
const prog_char GPX_DOCUMENT_FOOTER[] =
27
{
29
{
28
"</gpx>\r\n"
30
"</gpx>\r\n"
29
};
31
};
30
 
32
 
31
//________________________________________________________________________________________________________________________________________
33
//________________________________________________________________________________________________________________________________________
32
//
34
//
33
// Header of a track
35
// Header of a track
34
//
36
//
35
//________________________________________________________________________________________________________________________________________
37
//________________________________________________________________________________________________________________________________________
36
 
38
 
37
const int8_t GPX_TRACK_HEADER[] =
39
const prog_char GPX_TRACK_HEADER[] =
38
{
40
{
39
"<trk>\r\n"
41
"<trk>\r\n"
40
"<name>Flight</name>\r\n"
42
"<name>Flight</name>\r\n"
41
};
43
};
42
 
44
 
43
//________________________________________________________________________________________________________________________________________
45
//________________________________________________________________________________________________________________________________________
44
//
46
//
45
// Footer of a track
47
// Footer of a track
46
//
48
//
47
//________________________________________________________________________________________________________________________________________
49
//________________________________________________________________________________________________________________________________________
48
const int8_t GPX_TRACK_FOOTER[] =
50
const prog_char GPX_TRACK_FOOTER[] =
49
{
51
{
50
"</trk>\r\n"
52
"</trk>\r\n"
51
};
53
};
52
 
54
 
53
//________________________________________________________________________________________________________________________________________
55
//________________________________________________________________________________________________________________________________________
54
//
56
//
55
// Header of a track segment
57
// Header of a track segment
56
//
58
//
57
//________________________________________________________________________________________________________________________________________
59
//________________________________________________________________________________________________________________________________________
58
const int8_t GPX_TRACKSEGMENT_HEADER[] =
60
const prog_char GPX_TRACKSEGMENT_HEADER[] =
59
{
61
{
60
"<trkseg>\r\n"
62
"<trkseg>\r\n"
61
};
63
};
62
 
64
 
63
//________________________________________________________________________________________________________________________________________
65
//________________________________________________________________________________________________________________________________________
64
//
66
//
65
// Footer of a track segment
67
// Footer of a track segment
66
//
68
//
67
//________________________________________________________________________________________________________________________________________
69
//________________________________________________________________________________________________________________________________________
68
const int8_t GPX_TRACKSEGMENT_FOOTER[] =
70
const prog_char GPX_TRACKSEGMENT_FOOTER[] =
69
{
71
{
70
"</trkseg>\r\n"
72
"</trkseg>\r\n"
71
};
73
};
72
 
74