Subversion Repositories Projects

Rev

Rev 426 | Go to most recent revision | Show entire file | Regard 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>
-
 
3
 
1
//________________________________________________________________________________________________________________________________________
4
//________________________________________________________________________________________________________________________________________
2
// 
5
//
3
// Definition of KML header and footer elements for documents, placemarks and linestrings
6
// Definition of KML header and footer elements for documents, placemarks and linestrings
4
//                              
7
//
5
//________________________________________________________________________________________________________________________________________
8
//________________________________________________________________________________________________________________________________________
6
const int8_t KML_DOCUMENT_HEADER[] =
9
const prog_char KML_DOCUMENT_HEADER[] =
7
{
10
{
8
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
11
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
9
"<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n"
12
"<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n"
10
"<Document>\r\n"
13
"<Document>\r\n"
11
"<name>Mikrokopter GPS logging</name>\r\n"
14
"<name>Mikrokopter GPS logging</name>\r\n"
Line 21... Line 24...
21
//________________________________________________________________________________________________________________________________________
24
//________________________________________________________________________________________________________________________________________
22
// 
25
//
23
// footer of an KML- file.
26
// footer of an KML- file.
24
//                              
27
//
25
//________________________________________________________________________________________________________________________________________
28
//________________________________________________________________________________________________________________________________________
26
const int8_t KML_DOCUMENT_FOOTER[] =
29
const prog_char KML_DOCUMENT_FOOTER[] =
27
{
30
{
28
"</Document>\r\n"
31
"</Document>\r\n"
29
"</kml>\r\n"
32
"</kml>\r\n"
30
};
33
};
Line 31... Line 34...
31
 
34
 
32
//________________________________________________________________________________________________________________________________________
35
//________________________________________________________________________________________________________________________________________
33
// 
36
//
34
// Header of an placemark
37
// Header of an placemark
35
//                              
38
//
36
//________________________________________________________________________________________________________________________________________
39
//________________________________________________________________________________________________________________________________________
37
const int8_t KML_PLACEMARK_HEADER[] =
40
const prog_char KML_PLACEMARK_HEADER[] =
38
{
41
{
39
"<Placemark>\r\n"
42
"<Placemark>\r\n"
40
"<name>Flight</name>\r\n"
43
"<name>Flight</name>\r\n"
41
"<styleUrl>#MK_gps-style</styleUrl>\r\n"
44
"<styleUrl>#MK_gps-style</styleUrl>\r\n"
Line 44... Line 47...
44
//________________________________________________________________________________________________________________________________________
47
//________________________________________________________________________________________________________________________________________
45
// 
48
//
46
// Footer of an placemark
49
// Footer of an placemark
47
//                              
50
//
48
//________________________________________________________________________________________________________________________________________
51
//________________________________________________________________________________________________________________________________________
49
const int8_t KML_PLACEMARK_FOOTER[] =
52
const prog_char KML_PLACEMARK_FOOTER[] =
50
{
53
{
51
"</Placemark>\r\n"
54
"</Placemark>\r\n"
52
};
55
};
Line 53... Line 56...
53
 
56
 
54
 
57
 
55
//________________________________________________________________________________________________________________________________________
58
//________________________________________________________________________________________________________________________________________
56
// 
59
//
57
// Header of an linestring
60
// Header of an linestring
58
//                              
61
//
59
//________________________________________________________________________________________________________________________________________
62
//________________________________________________________________________________________________________________________________________
60
const int8_t KML_LINESTRING_HEADER[] =
63
const prog_char KML_LINESTRING_HEADER[] =
61
{
64
{
62
"<LineString>\r\n"
65
"<LineString>\r\n"
63
"<tessellate>1</tessellate>\r\n"
66
"<tessellate>1</tessellate>\r\n"
Line 68... Line 71...
68
//________________________________________________________________________________________________________________________________________
71
//________________________________________________________________________________________________________________________________________
69
// 
72
//
70
// Footer of an linestring
73
// Footer of an linestring
71
//                              
74
//
72
//________________________________________________________________________________________________________________________________________
75
//________________________________________________________________________________________________________________________________________
73
const int8_t KML_LINESTRING_FOOTER[] =
76
const prog_char KML_LINESTRING_FOOTER[] =
74
{
77
{
75
"\r\n</coordinates>"
78
"\r\n</coordinates>"
76
"\r\n</LineString>\r\n"
79
"\r\n</LineString>\r\n"
77
};
80
};