This commit is contained in:
2025-07-11 14:35:06 +08:00
parent bbb9bcace4
commit 2b37192fdb
67 changed files with 18070 additions and 4 deletions

45
example/ZJGFP01.kml Normal file
View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>ZJG_FP01.kml</name>
<StyleMap id="m_ylw-pushpin">
<Pair>
<key>normal</key>
<styleUrl>#s_ylw-pushpin</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#s_ylw-pushpin_hl</styleUrl>
</Pair>
</StyleMap>
<Style id="s_ylw-pushpin">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Style id="s_ylw-pushpin_hl">
<IconStyle>
<scale>1.3</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Placemark>
<name>ZJG_FP01</name>
<styleUrl>#m_ylw-pushpin</styleUrl>
<LineString>
<tessellate>1</tessellate>
<coordinates>
120.0713199808066,30.30296609540256,0 120.0722236004562,30.30136007842761,0 120.0721576947871,30.30122986637238,0 120.0711988299073,30.30294570574724,0 120.0710472572589,30.30292826668609,0 120.0720644525771,30.30115242123294,0 120.0719978507786,30.30103860926329,0 120.0709282945064,30.3029174986085,0 120.0707904817869,30.30292413593667,0 120.0719243263483,30.30093876605309,0 120.0718779247643,30.30080911954171,0 120.0706539419049,30.30293451299595,0 120.0705188831114,30.30294874399855,0 120.0718062011618,30.3007103114648,0 120.0717379656705,30.30060756339934,0 120.0703868205531,30.30295597789597,0 120.07026190277,30.30296704989506,0 120.0716605467613,30.30053608582945,0 120.0715831638827,30.30045335362224,0 120.0701622940469,30.30296713945471,0 120.0701892239684,30.30274029452477,0 120.071489120961,30.30038692495487,0
</coordinates>
</LineString>
<atom:link rel="app" href="https://www.google.com/earth/about/versions/#earth-pro" title="Google Earth Pro 7.3.6.10201"></atom:link>
</Placemark>
</Document>
</kml>

49
example/ZJG_WEST_Poly.kml Normal file
View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>ZJG_WEST_Land.kml</name>
<StyleMap id="m_ylw-pushpin">
<Pair>
<key>normal</key>
<styleUrl>#s_ylw-pushpin</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#s_ylw-pushpin_hl</styleUrl>
</Pair>
</StyleMap>
<Style id="s_ylw-pushpin">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Style id="s_ylw-pushpin_hl">
<IconStyle>
<scale>1.3</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Placemark>
<name>ZJG_WEST_Land</name>
<styleUrl>#m_ylw-pushpin</styleUrl>
<Polygon>
<tessellate>1</tessellate>
<outerBoundaryIs>
<LinearRing>
<coordinates>
120.0701504678125,30.30289247418878,0 120.0715700981767,30.30037547025165,0 120.0716552341509,30.30037856245562,0 120.0719911686661,30.30057441794403,0 120.0721447039997,30.30118697364271,0 120.0723281469306,30.30139832016051,0 120.0714564993934,30.30294222569832,0 120.0701857369571,30.30298230983258,0 120.0701504678125,30.30289247418878,0
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
<atom:link rel="app" href="https://www.google.com/earth/about/versions/#earth-pro" title="Google Earth Pro 7.3.6.10201"></atom:link>
</Placemark>
</Document>
</kml>

View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>ZJG_WEST_Land_Dir.kml</name>
<StyleMap id="m_ylw-pushpin">
<Pair>
<key>normal</key>
<styleUrl>#s_ylw-pushpin</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#s_ylw-pushpin_hl</styleUrl>
</Pair>
</StyleMap>
<Style id="s_ylw-pushpin">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Style id="s_ylw-pushpin_hl">
<IconStyle>
<scale>1.3</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Placemark>
<name>direction</name>
<styleUrl>#m_ylw-pushpin</styleUrl>
<LineString>
<tessellate>1</tessellate>
<coordinates>
120.070591793259,30.30308026477423,0 120.0720345189376,30.30033396357227,0
</coordinates>
</LineString>
<atom:link rel="app" href="https://www.google.com/earth/about/versions/#earth-pro" title="Google Earth Pro 7.3.6.10201"></atom:link>
</Placemark>
</Document>
</kml>

39
example/config.toml Normal file
View File

@@ -0,0 +1,39 @@
author = "zhangyi"
kmzFile = "ZJGFP01_OUT.kmz"
[placemark]
PointFile = "ZJGFP01.kml"
useGlobalHeight = "yes"
useGlobalSpeed = "yes"
useGlobalHeadingParam = "yes"
useGlobalTurnParam = "yes"
[missionConfig]
droneType = "Matrice 350 RTK"
flyToWaylineMode = "safely"
finishAction = "goHome"
exitOnRCLost = "goContinue"
takeOffSecurityHeight = 50.0
globalTransitionalSpeed = 10.0
globalRTHHeight = 50.0
[wayline]
templateType = "waypoint"
templateId = 0
autoFlightSpeed = 8.0
globalHeight = 30.0
caliFlightEnable = "no"
gimbalPitchMode = "manual"
globalWaypointTurnMode = "coordinateTurn"
globalUseStraightLine = "yes"
[wayline.waylineCoordinateSysParam]
coordinateMode = "WGS84"
heightMode = "relativeToStartPoint"
positioningType = "GPS"
[wayline.globalWaypointHeadingParam]
waypointHeadingMode = "followWayline"
waypointHeadingAngle = 0.0
waypointPoiPoint = [0.0, 0.0, 0.0]
waypointHeadingPoiIndex = 0