]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/logic.cxx
AircraftModel hacking for package support.
[flightgear.git] / src / Autopilot / logic.cxx
index 860af0e80043f8f5babab3584bfc7f12b7fdcb63..e49627f2aae602a6abc9323dbe26aa9073c0c833 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef HAVE_CONFIG_H
 #  include <config.h>
 #endif
-#include <simgear/math/SGMath.hxx>
 #endif
 
 #include "logic.hxx"
@@ -58,6 +57,17 @@ bool Logic::get_output() const
 
 void Logic::update( bool firstTime, double dt )
 {
+  if(_debug) {
+    bool q = get_output();
+    bool a = get_input();
+    if( a != q ) {
+      using std::endl;
+      using std::cout;
+      cout << "updating logic \"" << get_name() << "\"" << endl;
+      cout << "prev. Output:" << q << endl;
+      cout << "new   Output:" << a << endl;
+    }
+  }
   set_output( get_input() );
 }