X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2Fflight.cxx;h=74bc1b5d98d6f9d8a0f8fea9b7178f8d427c9172;hb=7041ed907891f7be0205cafe13b218f9f2767efa;hp=ccef14e0b9c64d59b617c48e9754a4ab875be62b;hpb=948aa70af78626584042b70fdf3c3babfb5aa804;p=flightgear.git diff --git a/src/FDM/flight.cxx b/src/FDM/flight.cxx index ccef14e0b..74bc1b5d9 100644 --- a/src/FDM/flight.cxx +++ b/src/FDM/flight.cxx @@ -98,7 +98,7 @@ FGInterface::_setup () _state.v_local_v = SGVec3d::zeros(); _state.v_local_rel_ground_v = SGVec3d::zeros(); _state.v_local_airmass_v = SGVec3d::zeros(); - _state.v_wind_body_v = SGVec3d::zeros(); + _state.v_body_v = SGVec3d::zeros(); _state.omega_body_v = SGVec3d::zeros(); _state.euler_rates_v = SGVec3d::zeros(); _state.geocentric_rates_v = SGVec3d::zeros(); @@ -200,13 +200,13 @@ FGInterface::common_init () if ( !fgHasNode("/sim/presets/speed-set") ) { set_V_calibrated_kts(0.0); } else { - const string speedset = fgGetString("/sim/presets/speed-set"); + const std::string speedset = fgGetString("/sim/presets/speed-set"); if ( speedset == "knots" || speedset == "KNOTS" ) { set_V_calibrated_kts( fgGetDouble("/sim/presets/airspeed-kt") ); } else if ( speedset == "mach" || speedset == "MACH" ) { set_Mach_number( fgGetDouble("/sim/presets/mach") ); } else if ( speedset == "UVW" || speedset == "uvw" ) { - set_Velocities_Wind_Body( + set_Velocities_Body( fgGetDouble("/sim/presets/uBody-fps"), fgGetDouble("/sim/presets/vBody-fps"), fgGetDouble("/sim/presets/wBody-fps") ); @@ -366,7 +366,7 @@ FGInterface::bind () _tiedProperties.Tie("/velocities/down-relground-fps", this, &FGInterface::get_V_down_rel_ground); // read-only - // Relative wind + // ECEF velocity in body axis // FIXME: temporarily archivable, until the NED problem is fixed. _tiedProperties.Tie("/velocities/uBody-fps", this, &FGInterface::get_uBody, @@ -565,12 +565,12 @@ void FGInterface::set_Velocities_Local( double north, _state.v_local_v[2] = down; } -void FGInterface::set_Velocities_Wind_Body( double u, +void FGInterface::set_Velocities_Body( double u, double v, double w){ - _state.v_wind_body_v[0] = u; - _state.v_wind_body_v[1] = v; - _state.v_wind_body_v[2] = w; + _state.v_body_v[0] = u; + _state.v_body_v[1] = v; + _state.v_body_v[2] = w; } // Euler angles @@ -615,7 +615,7 @@ void FGInterface::_busdump(void) SG_LOG(SG_FLIGHT,SG_INFO,"v_local_v: " << _state.v_local_v); SG_LOG(SG_FLIGHT,SG_INFO,"v_local_rel_ground_v: " << _state.v_local_rel_ground_v); SG_LOG(SG_FLIGHT,SG_INFO,"v_local_airmass_v: " << _state.v_local_airmass_v); - SG_LOG(SG_FLIGHT,SG_INFO,"v_wind_body_v: " << _state.v_wind_body_v); + SG_LOG(SG_FLIGHT,SG_INFO,"v_body_v: " << _state.v_body_v); SG_LOG(SG_FLIGHT,SG_INFO,"omega_body_v: " << _state.omega_body_v); SG_LOG(SG_FLIGHT,SG_INFO,"euler_rates_v: " << _state.euler_rates_v); SG_LOG(SG_FLIGHT,SG_INFO,"geocentric_rates_v: " << _state.geocentric_rates_v);