Subversion Repositories Projects

Rev

Rev 426 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
434 killagreg 1
// all constant strings are within the flash to save space in the sram
2
#include <avr/pgmspace.h>
3
 
426 killagreg 4
//________________________________________________________________________________________________________________________________________
434 killagreg 5
//
426 killagreg 6
// Definition of KML header and footer elements for documents, placemarks and linestrings
434 killagreg 7
//
426 killagreg 8
//________________________________________________________________________________________________________________________________________
434 killagreg 9
const prog_char KML_DOCUMENT_HEADER[] =
426 killagreg 10
{
11
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
12
"<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n"
13
"<Document>\r\n"
14
"<name>Mikrokopter GPS logging</name>\r\n"
15
"\r\n"
16
"<Style id=\"MK_gps-style\">\r\n"
17
"<LineStyle>\r\n"
18
"<color>ff0000ff</color>\r\n"
19
"<width>2</width>\r\n"
20
"</LineStyle>\r\n"
21
"</Style>\r\n"
22
};
23
 
24
//________________________________________________________________________________________________________________________________________
434 killagreg 25
//
426 killagreg 26
// footer of an KML- file.
434 killagreg 27
//
426 killagreg 28
//________________________________________________________________________________________________________________________________________
434 killagreg 29
const prog_char KML_DOCUMENT_FOOTER[] =
426 killagreg 30
{
31
"</Document>\r\n"
32
"</kml>\r\n"
33
};
34
 
35
//________________________________________________________________________________________________________________________________________
434 killagreg 36
//
426 killagreg 37
// Header of an placemark
434 killagreg 38
//
426 killagreg 39
//________________________________________________________________________________________________________________________________________
434 killagreg 40
const prog_char KML_PLACEMARK_HEADER[] =
426 killagreg 41
{
42
"<Placemark>\r\n"
43
"<name>Flight</name>\r\n"
44
"<styleUrl>#MK_gps-style</styleUrl>\r\n"
45
};
46
 
47
//________________________________________________________________________________________________________________________________________
434 killagreg 48
//
426 killagreg 49
// Footer of an placemark
434 killagreg 50
//
426 killagreg 51
//________________________________________________________________________________________________________________________________________
434 killagreg 52
const prog_char KML_PLACEMARK_FOOTER[] =
426 killagreg 53
{
54
"</Placemark>\r\n"
55
};
56
 
57
 
58
//________________________________________________________________________________________________________________________________________
434 killagreg 59
//
426 killagreg 60
// Header of an linestring
434 killagreg 61
//
426 killagreg 62
//________________________________________________________________________________________________________________________________________
434 killagreg 63
const prog_char KML_LINESTRING_HEADER[] =
426 killagreg 64
{
65
"<LineString>\r\n"
66
"<tessellate>1</tessellate>\r\n"
67
"<altitudeMode>relativeToGround</altitudeMode>\r\n"  // also possible "absolute"
68
"<coordinates>\r\n"
69
};
70
 
71
//________________________________________________________________________________________________________________________________________
434 killagreg 72
//
426 killagreg 73
// Footer of an linestring
434 killagreg 74
//
426 killagreg 75
//________________________________________________________________________________________________________________________________________
434 killagreg 76
const prog_char KML_LINESTRING_FOOTER[] =
426 killagreg 77
{
78
"\r\n</coordinates>"
79
"\r\n</LineString>\r\n"
80
};
81