I wonder what the jamming logic should be instead. Maybe check
whether the angle between the cockpit Y axis and the resultant force
presently acting on the plane is within some limit?
FYI: This error is present in 0.9.8 release as well.
Index: ../source/src/Instrumentation/mag_compass.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Instrumentation/mag_compass.cxx,v
retrieving revision 1.8
diff -u -p -r1.8 mag_compass.cxx
--- ../source/src/Instrumentation/mag_compass.cxx 6 Apr 2005 08:24:30
-0000 1.8
+++ ../source/src/Instrumentation/mag_compass.cxx 22 Oct 2005 22:23:56
-0000
@@ -94,11 +94,17 @@ MagCompass::update (double delta_time_se
if (!_serviceable_node->getBoolValue())
return;
+ /*
+ * Vassilii: commented out because this way, even when parked,
+ * w/o any accelerations and level, the compass is jammed.
+ * If somebody wants to model jamming, real forces (i.e. accelerations)
+ * and not sideslip angle must be considered.
// jam on excessive sideslip
if (fabs(_beta_node->getDoubleValue()) > 12.0) {
_rate_degps = 0.0;
return;
}
+ */
/*
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d