code:kml_live_update
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
code:kml_live_update [2008/01/16 21:58] – created rocketboy | code:kml_live_update [2008/07/19 23:33] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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 |
+ | |||
+ | 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 " | ||
+ | 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. | ||
< | < | ||
Line 8: | Line 15: | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
< | < | ||
Line 16: | Line 23: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | **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/kml_live_update.1200520683.txt.gz · Last modified: 2008/07/19 23:31 (external edit)