// Initialize the BalloonSim flight model, dt is the time increment for
// each subsequent iteration through the EOM
void FGBalloonSim::init() {
+ // explicitly call the superclass's
+ // init method first.
+ FGInterface::init();
+
sgVec3 temp;
SG_LOG( SG_FLIGHT, SG_INFO, "Starting initializing BalloonSim" );
//set velocities
sgSetVec3( temp,
- fgGetDouble("/velocities/uBody"),
- fgGetDouble("/velocities/vBody"),
- fgGetDouble("/velocities/wBody") );
+ fgGetDouble("/velocities/uBody-fps"),
+ fgGetDouble("/velocities/vBody-fps"),
+ fgGetDouble("/velocities/wBody-fps") );
current_balloon.setVelocity( temp );
SG_LOG( SG_FLIGHT, SG_INFO, "Finished initializing BalloonSim" );
}
// set control positions
- current_balloon.set_burner_strength ( controls.get_throttle(0) );
+ current_balloon.set_burner_strength ( globals->get_controls()->get_throttle(0) );
//not more implemented yet
// Inform BalloonSim of the local terrain altitude