Difference between revisions of "User:EldenC"
m |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
It works reasonably well, but I'm still learning to tune it (altitude does not work well). | It works reasonably well, but I'm still learning to tune it (altitude does not work well). | ||
[[Media: | [[Media:Flight_09_12_10__07_03_14.kmz]] | ||
This file can be opened with googleearth. | |||
(googleearth/KML works well in ubuntu, see [http://earth.google.com/] if using nvidia you'll need their drivers) | |||
If you download Flight_09_12_10__07_03_14.kmz and 'unzip' it (unzip Flight_09_12_10__07_03_14.kmz) you can see the files used to make it as well. | |||
An example of using the converter from the unzipped Flight_09_12_10__07_03_14.kmz: | |||
'perl 09_12_10__07_03_14/utm_geo_convertion.pl 09_12_10__07_03_14.data -scale_plane=15.0' | |||
The thing that I don't currently understand how to do in KML is the conversion from the airplane's frame of reference to the world frame of reference. | |||
I need that to be able to show the rudder, ailerons and elevator in there actual positions. | |||
I haven't figured out the math yet, the likely candidates are DH transform, Euler angles, or Quaternions....I seem to have forgotten my linear algebra. | |||
[[Image:ScreenShot_ge_flight2.jpg|thumb]] | |||
Schetchup of 3Points For 3d Location | |||
[[Media:a3dLocationFrom3Angles3Pts.skp]] | |||
[mailto:eldenc@tucsonembedded_dot_com Elden Crom] | |||
Updated version: | |||
[[Media:Flight_10_02_14__18_04_10.kmz]] | |||
I had not realized that there was already a place to put a GCS to KLM converter so I wrote my own (in perl) that works from the command line by importing the *.data file and converting it to KML then packs it all up into the KMZ. | |||
This file contains the KML and associated file along with perl source code and the *data and *log file that I used to create it. (a kmz is just a set of files that can be zipped or unzipped with ubuntu's 'zip' or 'unzip' command line tool). | |||
To get to the script (utm_geo_convertion.pl) download and 'unzip Flight_10_02_14__18_04_10.kmz'. | |||
To rerun it with different parameters you could then call | |||
perl utm_geo_convertion.pl 10_02_14__18_04_10.data -scale_plane=20.0 -start_time=20 | |||
(by the way I started recording prior to the GPS locking in so you have to tell it to ignore data ( -start_time=20) for the first 20 seconds of the log) |
Latest revision as of 10:49, 16 March 2010
Elden Crom
US Just started using paparazzi on a Twinstar. It works reasonably well, but I'm still learning to tune it (altitude does not work well).
Media:Flight_09_12_10__07_03_14.kmz This file can be opened with googleearth. (googleearth/KML works well in ubuntu, see [1] if using nvidia you'll need their drivers) If you download Flight_09_12_10__07_03_14.kmz and 'unzip' it (unzip Flight_09_12_10__07_03_14.kmz) you can see the files used to make it as well. An example of using the converter from the unzipped Flight_09_12_10__07_03_14.kmz:
'perl 09_12_10__07_03_14/utm_geo_convertion.pl 09_12_10__07_03_14.data -scale_plane=15.0'
The thing that I don't currently understand how to do in KML is the conversion from the airplane's frame of reference to the world frame of reference. I need that to be able to show the rudder, ailerons and elevator in there actual positions. I haven't figured out the math yet, the likely candidates are DH transform, Euler angles, or Quaternions....I seem to have forgotten my linear algebra.
Schetchup of 3Points For 3d Location Media:a3dLocationFrom3Angles3Pts.skp
Updated version: Media:Flight_10_02_14__18_04_10.kmz
I had not realized that there was already a place to put a GCS to KLM converter so I wrote my own (in perl) that works from the command line by importing the *.data file and converting it to KML then packs it all up into the KMZ.
This file contains the KML and associated file along with perl source code and the *data and *log file that I used to create it. (a kmz is just a set of files that can be zipped or unzipped with ubuntu's 'zip' or 'unzip' command line tool). To get to the script (utm_geo_convertion.pl) download and 'unzip Flight_10_02_14__18_04_10.kmz'.
To rerun it with different parameters you could then call perl utm_geo_convertion.pl 10_02_14__18_04_10.data -scale_plane=20.0 -start_time=20 (by the way I started recording prior to the GPS locking in so you have to tell it to ignore data ( -start_time=20) for the first 20 seconds of the log)