X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FExternalPipe%2FExternalPipe.cxx;h=8f33df584c36c0b719a94b7b8bd333aa9c519a00;hb=0824fe68f3fec838c3d0b8500966560c7397047e;hp=cba15e62205ec997f8adeafa8b3456969e6db37e;hpb=c9813d1b5d79b4aad13c263690a0223086af25ac;p=flightgear.git diff --git a/src/FDM/ExternalPipe/ExternalPipe.cxx b/src/FDM/ExternalPipe/ExternalPipe.cxx index cba15e622..8f33df584 100644 --- a/src/FDM/ExternalPipe/ExternalPipe.cxx +++ b/src/FDM/ExternalPipe/ExternalPipe.cxx @@ -32,6 +32,7 @@ #endif #include // FILE*, fopen(), fread(), fwrite(), et. al. +#include // for cout, endl #include #include // endian tests @@ -44,6 +45,8 @@ #include "ExternalPipe.hxx" +using std::cout; +using std::endl; static const int MAX_BUF = 32768; @@ -522,6 +525,7 @@ void FGExternalPipe::update_property( double dt ) { cout << "Error reading data" << endl; } else { // cout << " read " << strlen(cmd) << " bytes" << endl; + // cout << cmd << endl; } // chop trailing newline @@ -540,7 +544,7 @@ void FGExternalPipe::update_property( double dt ) { // node doesn't exist so create with requested type node = fgGetNode( tokens[1].c_str(), true ); if ( tokens[2] == "bool" ) { - node->setBoolValue(true); + node->setBoolValue(false); } else if ( tokens[2] == "int" ) { node->setIntValue(0); } else if ( tokens[2] == "double" ) {