]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a screwup I introduced with radians to degree conversion in passing data
authorcurt <curt>
Mon, 29 Oct 2001 17:28:00 +0000 (17:28 +0000)
committercurt <curt>
Mon, 29 Oct 2001 17:28:00 +0000 (17:28 +0000)
between JSBSim and FlightGear.

src/FDM/JSBSim.cxx

index 0c617a5fe94bb2253a14f3e45db0e202dcbda094..5d22250675d57872849b29e5ea918300c46a90cf 100644 (file)
@@ -391,8 +391,8 @@ bool FGJSBsim::copy_from_JSBsim() {
     _set_Mach_number( Translation->GetMach() );
 
     // Positions
-    _updatePosition( Position->GetLatitude() * SGD_DEGREES_TO_RADIANS,
-                     Position->GetLongitude() * SGD_DEGREES_TO_RADIANS,
+    _updatePosition( Position->GetLatitude(),
+                     Position->GetLongitude(),
                      Position->Geth() );
 
     _set_Altitude_AGL( Position->GetDistanceAGL() );
@@ -470,7 +470,7 @@ void FGJSBsim::set_Latitude(double lat) {
                  &sea_level_radius_meters, &lat_geoc );
     _set_Sea_level_radius( sea_level_radius_meters * SG_METER_TO_FEET  );
     fgic->SetSeaLevelRadiusFtIC( sea_level_radius_meters * SG_METER_TO_FEET  );
-    fgic->SetLatitudeRadIC( lat_geoc * SGD_RADIANS_TO_DEGREES );
+    fgic->SetLatitudeRadIC( lat_geoc );
     needTrim=true;
 }
 
@@ -478,7 +478,7 @@ void FGJSBsim::set_Longitude(double lon) {
 
     SG_LOG(SG_FLIGHT,SG_INFO,"FGJSBsim::set_Longitude: " << lon );
 
-    fgic->SetLongitudeRadIC(lon * SGD_RADIANS_TO_DEGREES );
+    fgic->SetLongitudeRadIC( lon );
     needTrim=true;
 }
 
@@ -495,7 +495,7 @@ void FGJSBsim::set_Altitude(double alt) {
                  &sea_level_radius_meters, &lat_geoc);
     _set_Sea_level_radius( sea_level_radius_meters * SG_METER_TO_FEET  );
     fgic->SetSeaLevelRadiusFtIC( sea_level_radius_meters * SG_METER_TO_FEET );
-    fgic->SetLatitudeRadIC( lat_geoc * SGD_RADIANS_TO_DEGREES );
+    fgic->SetLatitudeRadIC( lat_geoc );
     fgic->SetAltitudeFtIC(alt);
     needTrim=true;
 }