X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FATC-Outputs.cxx;h=fbaf566cdce37212a62fb6c4440180582841bf5d;hb=c9813d1b5d79b4aad13c263690a0223086af25ac;hp=8c7edead327d4ca93d83e7aa9c1713ab0d389439;hpb=e7fa493b0d934da6a92fea3415a516fd7461e76c;p=flightgear.git diff --git a/src/Network/ATC-Outputs.cxx b/src/Network/ATC-Outputs.cxx index 8c7edead3..fbaf566cd 100644 --- a/src/Network/ATC-Outputs.cxx +++ b/src/Network/ATC-Outputs.cxx @@ -16,7 +16,7 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ @@ -31,11 +31,17 @@ # include # include # include +# include +# include #endif +#include +#include + #include STL_STRING #include +#include #include
@@ -267,6 +273,7 @@ bool FGATCOutput::open( int lock_fd ) { #endif +#ifdef ATCFLIGHTSIM_HAVE_COMPASS ///////////////////////////////////////////////////////////////////// // Home the compass stepper motor ///////////////////////////////////////////////////////////////////// @@ -317,6 +324,7 @@ bool FGATCOutput::open( int lock_fd ) { } compass_position = 0.0; +#endif ///////////////////////////////////////////////////////////////////// // Blank the radio display @@ -380,7 +388,6 @@ bool FGATCOutput::open( int lock_fd ) { ///////////////////////////////////////////////////////////////////// bool FGATCOutput::do_lamps() { - if ( lamps_out_node != NULL ) { for ( int i = 0; i < lamps_out_node->nChildren(); ++i ) { // read the next config entry from the property tree @@ -930,7 +937,9 @@ bool FGATCOutput::process() { do_lamps(); do_radio_display(); +#ifdef ATCFLIGHTSIM_HAVE_COMPASS do_steppers(); +#endif return true; }