Removed some extraneous debugging output.
This commit is contained in:
parent
191bb21888
commit
2c20e61b4b
1 changed files with 0 additions and 8 deletions
|
@ -46,8 +46,6 @@ FGExternalPipe::FGExternalPipe( double dt, string name ) {
|
||||||
|
|
||||||
buf = new char[sizeof(ctrls) + 1];
|
buf = new char[sizeof(ctrls) + 1];
|
||||||
|
|
||||||
cout << "dt = " << dt << endl;
|
|
||||||
|
|
||||||
#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H )
|
#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H )
|
||||||
fifo_name_1 = name + "1";
|
fifo_name_1 = name + "1";
|
||||||
fifo_name_2 = name + "2";
|
fifo_name_2 = name + "2";
|
||||||
|
@ -71,13 +69,11 @@ FGExternalPipe::FGExternalPipe( double dt, string name ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pd1 = open( fifo_name_1.c_str(), O_RDWR );
|
pd1 = open( fifo_name_1.c_str(), O_RDWR );
|
||||||
cout << "pd1 = " << pd1 << endl;
|
|
||||||
if ( pd1 == -1 ) {
|
if ( pd1 == -1 ) {
|
||||||
SG_LOG( SG_IO, SG_ALERT, "Unable to open named pipe: " << fifo_name_1 );
|
SG_LOG( SG_IO, SG_ALERT, "Unable to open named pipe: " << fifo_name_1 );
|
||||||
valid = false;
|
valid = false;
|
||||||
}
|
}
|
||||||
pd2 = open( fifo_name_2.c_str(), O_RDWR );
|
pd2 = open( fifo_name_2.c_str(), O_RDWR );
|
||||||
cout << "pd2 = " << pd2 << endl;
|
|
||||||
if ( pd2 == -1 ) {
|
if ( pd2 == -1 ) {
|
||||||
SG_LOG( SG_IO, SG_ALERT, "Unable to open named pipe: " << fifo_name_2 );
|
SG_LOG( SG_IO, SG_ALERT, "Unable to open named pipe: " << fifo_name_2 );
|
||||||
valid = false;
|
valid = false;
|
||||||
|
@ -208,7 +204,6 @@ void FGExternalPipe::update( double dt ) {
|
||||||
SG_LOG( SG_IO, SG_ALERT, "Write error to named pipe: "
|
SG_LOG( SG_IO, SG_ALERT, "Write error to named pipe: "
|
||||||
<< fifo_name_1 );
|
<< fifo_name_1 );
|
||||||
}
|
}
|
||||||
// cout << " wrote to pipe" << endl;
|
|
||||||
|
|
||||||
length = sizeof(fdm);
|
length = sizeof(fdm);
|
||||||
result = read( pd2, (char *)(& fdm), length );
|
result = read( pd2, (char *)(& fdm), length );
|
||||||
|
@ -217,8 +212,5 @@ void FGExternalPipe::update( double dt ) {
|
||||||
<< fifo_name_2 );
|
<< fifo_name_2 );
|
||||||
}
|
}
|
||||||
FGNetFDM2Props( &fdm, false );
|
FGNetFDM2Props( &fdm, false );
|
||||||
// cout << "read from pipe" << endl;
|
|
||||||
|
|
||||||
// SG_LOG( SG_IO, SG_INFO, " End FGExternalPipe::udpate()" );
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue