net->phi = cur_fdm_state->get_Phi();
net->theta = cur_fdm_state->get_Theta();
net->psi = cur_fdm_state->get_Psi();
+ net->alpha = cur_fdm_state->get_Alpha();
+ net->beta = cur_fdm_state->get_Beta();
net->phidot = cur_fdm_state->get_Phi_dot_degps() * SG_DEGREES_TO_RADIANS;
net->thetadot = cur_fdm_state->get_Theta_dot_degps()
* SG_DEGREES_TO_RADIANS;
net->left_aileron = node->getDoubleValue( "left-aileron-pos-norm" );
net->right_aileron = node->getDoubleValue( "right-aileron-pos-norm" );
net->rudder = node->getDoubleValue( "rudder-pos-norm" );
+ net->rudder = node->getDoubleValue( "nose-wheel-pos-norm" );
net->speedbrake = node->getDoubleValue( "speedbrake-pos-norm" );
net->spoilers = node->getDoubleValue( "spoilers-pos-norm" );
htonf(net->phi);
htonf(net->theta);
htonf(net->psi);
+ htonf(net->alpha);
+ htonf(net->beta);
htonf(net->phidot);
htonf(net->thetadot);
htonf(net->left_aileron);
htonf(net->right_aileron);
htonf(net->rudder);
+ htonf(net->nose_wheel);
htonf(net->speedbrake);
htonf(net->spoilers);
}
htonf(net->phi);
htonf(net->theta);
htonf(net->psi);
+ htonf(net->alpha);
+ htonf(net->beta);
htonf(net->phidot);
htonf(net->thetadot);
htonf(net->left_aileron);
htonf(net->right_aileron);
htonf(net->rudder);
+ htonf(net->nose_wheel);
htonf(net->speedbrake);
htonf(net->spoilers);
}
cur_fdm_state->_set_Euler_Angles( net->phi,
net->theta,
net->psi );
+ cur_fdm_state->_set_Alpha( net->alpha );
+ cur_fdm_state->_set_Beta( net->beta );
cur_fdm_state->_set_Euler_Rates( net->phidot,
net->thetadot,
net->psidot );
node->setDoubleValue("left-aileron-pos-norm", net->left_aileron);
node->setDoubleValue("right-aileron-pos-norm", net->right_aileron);
node->setDoubleValue("rudder-pos-norm", net->rudder);
+ node->setDoubleValue("nose-wheel-pos-norm", net->nose_wheel);
node->setDoubleValue("speedbrake-pos-norm", net->speedbrake);
node->setDoubleValue("spoilers-pos-norm", net->spoilers);
} else {