_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();
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") );
_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,
_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
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);