}
net->num_wheels = htonl(net->num_wheels);
-
// I don't need to convert the Wow flags, since they are one byte in size
+ htond(net->flap_deflection);
net->cur_time = ntohl(net->cur_time);
net->warp = ntohl(net->warp);
node->setDoubleValue("wow", net->wow[i] );
}
+ fgSetDouble("/surface-positions/flap-pos-norm", net->flap_deflection);
+
/* these are ignored for now ... */
/*
if ( net->cur_time ) {
FGExternalNet::FGExternalNet( double dt, string host, int dop, int dip, int cp )
{
- set_delta_t( dt );
+// set_delta_t( dt );
valid = true;
// Run an iteration of the EOM. This is a NOP here because the flight
// model values are getting filled in elsewhere (most likely from some
// external source.)
-void FGExternalNet::update( int multiloop ) {
+void FGExternalNet::update( double dt ) {
int length;
int result;
+ if (is_suspended())
+ return;
+
// Send control positions to remote fdm
length = sizeof(ctrls);
global2raw( &ctrls );