]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/agradar.cxx
Add a hardwired instrument approach for testing. This will be removed and read from...
[flightgear.git] / src / Instrumentation / agradar.cxx
index 4e47d38e7c48e780d32a9c6e460afd8af8bfe0f8..c464ef3e0b4cb7ae2dc2a869a54d9ccd9f931c0d 100644 (file)
@@ -25,6 +25,8 @@
 #  include "config.h"
 #endif
 
+#include <Main/fg_props.hxx>
+#include <Main/globals.hxx>
 #include "agradar.hxx"
 
 
@@ -187,7 +189,6 @@ agRadar::setUserVec(double az, double el)
     float yaw   = _user_hdg_deg_node->getDoubleValue();
     float pitch = _user_pitch_deg_node->getDoubleValue();
     float roll  = _user_roll_deg_node->getDoubleValue();
-    int mode    = _radar_mode_control_node->getIntValue();
     double tilt = _Instrument->getDoubleValue("tilt");
     double trk  = _Instrument->getDoubleValue("trk");
     bool roll_stab   = _Instrument->getBoolValue("stabilisation/roll");