From b64a80b3a47882f692c625d51f8c0c55854143a9 Mon Sep 17 00:00:00 2001 From: oberion Date: Thu, 8 Sep 2011 09:31:53 +0200 Subject: [PATCH] Added senseSoar model for google earth with rolling and pitching --- images/earth.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/images/earth.html b/images/earth.html index 28828e9..f6f4f65 100644 --- a/images/earth.html +++ b/images/earth.html @@ -417,7 +417,7 @@ function createAircraft(id, type, color) planeOrient = ge.createOrientation(''); planeModel.setOrientation(planeOrient); - planeLink.setHref('http://qgroundcontrol.org/_media/users/models/ascent-park-glider.dae'); + planeLink.setHref('http://www.asl.ethz.ch/people/rudink/senseSoarDummy.dae'); planeModel.setLink(planeLink); planeModel.setAltitudeMode (ge.ALTITUDE_ABSOLUTE); @@ -589,9 +589,9 @@ function setAircraftPositionAttitude(id, lat, lon, alt, roll, pitch, yaw) //currFollowHeading = ((yaw/M_PI)+1.0)*360.0; - planeOrient.setRoll(((pitch / M_PI)) * 180.0); + planeOrient.setRoll(+((pitch / M_PI)) * 180.0); planeOrient.setTilt(-((roll / M_PI)) * 180.0); - planeOrient.setHeading(((yaw / M_PI)) * 180.0 + 90.0); + planeOrient.setHeading(((yaw / M_PI)) * 180.0 - 90.0); planeModel.setOrientation(planeOrient); currFollowHeading = ((yaw/M_PI))*180.0;