*/
+#include <simgear/compiler.h>
+
+#include <math.h>
+#include STL_IOSTREAM
+
#include "FDM/LaRCsimIC.hxx"
#include <FDM/LaRCsim/ls_cockpit.h>
#include <FDM/LaRCsim/ls_generic.h>
#include <FDM/LaRCsim/atmos_62.h>
#include <FDM/LaRCsim/ls_constants.h>
#include <FDM/LaRCsim/ls_geodesy.h>
-#include <math.h>
-#include <iostream>
+
+SG_USING_STD(cout);
+SG_USING_STD(endl);
+
LaRCsimIC::LaRCsimIC(void) {
vt=vtg=vw=vc=ve=0;
void LaRCsimIC::SetClimbRateFpsIC( SCALAR tt) {
vtg=vt+vw;
- cout << "vtg: " << vtg << endl;
if(vtg > 0.1) {
hdot = tt - vdownwind;
gamma=asin(hdot/vtg);
getTheta();
vdown=-1*hdot;
- cout << "hdot: " << hdot << endl;
- cout << "gamma: " << gamma*RAD_TO_DEG << endl;
- cout << "vdown: " << vdown << endl;
}
}
getTheta();
vtg=vt+vw;
hdot=vtg*sin(tt);
- cout << "hdot: " << hdot << endl;
vdown=-1*hdot;
}