From: James Turner Date: Mon, 29 Jul 2013 21:15:23 +0000 (+0100) Subject: Kill some defunct uses of side-slip property. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be44fa45ebbaabd86fce4fa7de1b8b9eea07318c;p=flightgear.git Kill some defunct uses of side-slip property. --- diff --git a/src/AIModel/AIManager.cxx b/src/AIModel/AIManager.cxx index 18d1d648a..8dc7c5382 100644 --- a/src/AIModel/AIManager.cxx +++ b/src/AIModel/AIManager.cxx @@ -127,7 +127,6 @@ FGAIManager::init() { wind_from_north_node = fgGetNode("/environment/wind-from-north-fps",true); user_altitude_agl_node = fgGetNode("/position/altitude-agl-ft", true); - user_yaw_node = fgGetNode("/orientation/side-slip-deg", true); user_speed_node = fgGetNode("/velocities/uBody-fps", true); globals->get_commands()->addCommand("load-scenario", this, &FGAIManager::loadScenarioCommand); @@ -296,9 +295,7 @@ FGAIManager::getNumAiObjects(void) const void FGAIManager::fetchUserState( void ) { - user_yaw = user_yaw_node->getDoubleValue(); globals->get_aircraft_orientation(user_heading, user_pitch, user_roll); - user_speed = user_speed_node->getDoubleValue() * 0.592484; wind_from_east = wind_from_east_node->getDoubleValue(); wind_from_north = wind_from_north_node->getDoubleValue(); diff --git a/src/AIModel/AIManager.hxx b/src/AIModel/AIManager.hxx index a7d2dcb8b..ed3462b2b 100644 --- a/src/AIModel/AIManager.hxx +++ b/src/AIModel/AIManager.hxx @@ -73,7 +73,6 @@ public: inline double get_user_heading() const { return user_heading; } inline double get_user_pitch() const { return user_pitch; } - inline double get_user_yaw() const { return user_yaw; } inline double get_user_speed() const {return user_speed; } inline double get_wind_from_east() const {return wind_from_east; } inline double get_wind_from_north() const {return wind_from_north; } @@ -108,7 +107,6 @@ private: SGPropertyNode_ptr enabled; SGPropertyNode_ptr thermal_lift_node; SGPropertyNode_ptr user_altitude_agl_node; - SGPropertyNode_ptr user_yaw_node; SGPropertyNode_ptr user_speed_node; SGPropertyNode_ptr wind_from_east_node; SGPropertyNode_ptr wind_from_north_node; @@ -119,7 +117,6 @@ private: double user_altitude_agl; double user_heading; double user_pitch; - double user_yaw; double user_roll; double user_speed; double wind_from_east; diff --git a/src/Instrumentation/tacan.cxx b/src/Instrumentation/tacan.cxx index 01319ec04..ee8022bf1 100644 --- a/src/Instrumentation/tacan.cxx +++ b/src/Instrumentation/tacan.cxx @@ -115,7 +115,6 @@ TACAN::init () _mp_callsign_node = mnode ? mnode->getChild("callsign", 0, false) : 0; _heading_node = fgGetNode("/orientation/heading-deg", true); - _yaw_node = fgGetNode("/orientation/side-slip-deg", true); _electrical_node = fgGetNode("/systems/electrical/outputs/tacan", true); } diff --git a/src/Instrumentation/tacan.hxx b/src/Instrumentation/tacan.hxx index 5a38376a8..b48057f4b 100644 --- a/src/Instrumentation/tacan.hxx +++ b/src/Instrumentation/tacan.hxx @@ -53,7 +53,6 @@ private: unsigned int _num; SGPropertyNode_ptr _heading_node; - SGPropertyNode_ptr _yaw_node; SGPropertyNode_ptr _serviceable_node; SGPropertyNode_ptr _electrical_node; SGPropertyNode_ptr _frequency_node;