{
SG_LOG(SG_FLIGHT,SG_INFO, "FGJSBsim::set_Altitude: " << alt );
- if (0){ // needTrim) {
+ if (needTrim) {
FGLocation position = fgic->GetPosition();
position.SetPositionGeodetic(0.0, position.GetGeodLatitudeRad(), alt);
fgic->SetAltitudeASLFtIC(position.GetAltitudeASL());
- fgic->SetLatitudeRadIC(position.GetLatitude());
+// fgic->SetLatitudeRadIC(position.GetLatitude());
}
else
Propagate->SetAltitudeASL(alt);
void FGJSBsim::set_V_calibrated_kts(double vc)
{
SG_LOG(SG_FLIGHT,SG_INFO, "FGJSBsim::set_V_calibrated_kts: " << vc );
+printf("%s\n", __PRETTY_FUNCTION__);
if (needTrim)
fgic->SetVcalibratedKtsIC(vc);
void FGJSBsim::set_Mach_number(double mach)
{
SG_LOG(SG_FLIGHT,SG_INFO, "FGJSBsim::set_Mach_number: " << mach );
+printf("%s\n", __PRETTY_FUNCTION__);
if (needTrim)
fgic->SetMachIC(mach);
{
SG_LOG(SG_FLIGHT,SG_INFO, "FGJSBsim::set_Velocities_Local: "
<< north << ", " << east << ", " << down );
+printf("%s\n", __PRETTY_FUNCTION__);
if (needTrim) {
fgic->SetVNorthFpsIC(north);
{
SG_LOG(SG_FLIGHT,SG_INFO, "FGJSBsim::set_Velocities_Body: "
<< u << ", " << v << ", " << w );
+printf("%s\n", __PRETTY_FUNCTION__);
if (needTrim) {
fgic->SetUBodyFpsIC(u);