#include <FDM/LaRCsim/ls_constants.h>
#include <FDM/LaRCsim/ls_geodesy.h>
-#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(cout);
SG_USING_STD(endl);
-#endif
LaRCsimIC::LaRCsimIC(void) {
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*SGD_RADIANS_TO_DEGREES << endl;
- cout << "vdown: " << vdown << endl;
}
}
getTheta();
vtg=vt+vw;
hdot=vtg*sin(tt);
- cout << "hdot: " << hdot << endl;
vdown=-1*hdot;
}