UK High Altitude Society

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
code:kml_live_update [2008/01/16 21:58]
rocketboy created
code:kml_live_update [2008/07/19 23:33] (current)
Line 1: Line 1:
 ====== KML near realtime update ====== ====== KML near realtime update ======
-Here are a cople of code times that provide a realtime update of balloon position on google earth etc.+Here are a couple ​of code files that provide a realtime update of balloon position on google earth etc
 +The 1st KML file is the outer shell kml that you launch from google earth - it just tells google earth to read  
 +the 2nd file (every10.kml) once every 10 seconds. 
 +The 2nd KML file (every10.kml) contains kml to draw a balloon track and the "​launch"​ and "​current position"​ placemarks. This whole file 
 +should be completly re-written every time the the balloon position needs updating. The google earth display will be updated upto 10 seconds later. 
 +Typically this file would be created and updated by code parsing GPS data being sent on a radio downlink
 <​code>​ <​code>​
Line 8: Line 15:
   <​NetworkLink>​   <​NetworkLink>​
     <​Link>​     <​Link>​
-      <​href>​test2.kml</​href>​+      <​href>​every10.kml</​href>​
       <​refreshMode>​onInterval</​refreshMode>​       <​refreshMode>​onInterval</​refreshMode>​
  <​refreshInterval>​10</​refreshInterval>​  <​refreshInterval>​10</​refreshInterval>​
Line 16: Line 23:
 </​kml>​ </​kml>​
 </​code>​ </​code>​
 +**every10.kml** - This defines a couple of suitable styles for placemarks and line strings, draws the launch placemark, draws the balloon track linestring (starting at the launch and ending at current position) and finally draws the current position placemark. This code based on the University of Wyoming trajectory calculator output (and uses their placemark gif)  ​
 <​code>​ <​code>​
code/kml_live_update.1200520683.txt.gz · Last modified: 2008/07/19 23:31 (external edit)