// conceptually, the following block could be done for each fdm
// instance ...
- if ( !cur_fdm_state->get_inited() ) {
- // do nothing, fdm isn't inited yet
- } else {
+ if ( cur_fdm_state->get_inited() ) {
// we have been inited, and we are good to go ...
if ( !inited ) {
replay_time->setDoubleValue( replay_time->getDoubleValue()
+ replay_dt_sec );
}
+ } else {
+ // do nothing, fdm isn't inited yet
}
globals->get_model_mgr()->update(delta_time_sec);
#include <simgear/constants.h>
+#include <FDM/flight.hxx>
#include <Network/native_ctrls.hxx>
#include <Network/native_fdm.hxx>
#include <Network/net_ctrls.hxx>
FGNetFDM f;
FGProps2NetFDM( &f, false );
+ // sanity check, don't collect data if FDM data isn't good
+ if ( !cur_fdm_state->get_inited() ) {
+ return;
+ }
+
FGNetCtrls c;
FGProps2NetCtrls( &c, false, false );