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>
-
 
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 17... Line 20...
17
"</LineStyle>\r\n"
20
"</LineStyle>\r\n"
18
"</Style>\r\n"
21
"</Style>\r\n"
19
};
22
};
Line 20... Line 23...
20
 
23
 
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"
Line 30... Line 33...
30
};
33
};
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"
Line 41... Line 44...
41
"<styleUrl>#MK_gps-style</styleUrl>\r\n"
44
"<styleUrl>#MK_gps-style</styleUrl>\r\n"
42
};
45
};
43
 
46
 
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[] =
Line 50... Line 53...
50
{
53
{
51
"</Placemark>\r\n"
54
"</Placemark>\r\n"
52
};
55
};
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
{
Line 62... Line 65...
62
"<LineString>\r\n"
65
"<LineString>\r\n"
63
"<tessellate>1</tessellate>\r\n"
66
"<tessellate>1</tessellate>\r\n"
64
"<altitudeMode>relativeToGround</altitudeMode>\r\n"  // also possible "absolute"
67
"<altitudeMode>relativeToGround</altitudeMode>\r\n"  // also possible "absolute"
65
"<coordinates>\r\n"
68
"<coordinates>\r\n"
66
};
69
};
67
 
70
 
68
//________________________________________________________________________________________________________________________________________
71
//________________________________________________________________________________________________________________________________________
69
// 
72
//
70
// Footer of an linestring
73
// Footer of an linestring
71
//                              
74
//