From 6f1f850c1172e159783c29c7c303f8f113f87525 Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Thu, 2 Feb 2017 10:03:33 +0100 Subject: [PATCH] YASim method name clarification Airplane::setWeight --- src/FDM/YASim/Airplane.cpp | 2 +- src/FDM/YASim/Airplane.hpp | 3 ++- src/FDM/YASim/FGFDM.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/FDM/YASim/Airplane.cpp b/src/FDM/YASim/Airplane.cpp index 2665eb1f9..f3f792ba9 100644 --- a/src/FDM/YASim/Airplane.cpp +++ b/src/FDM/YASim/Airplane.cpp @@ -272,7 +272,7 @@ float Airplane::getTankCapacity(int tank) return ((Tank*)_tanks.get(tank))->cap; } -void Airplane::setWeight(float weight) +void Airplane::setEmptyWeight(float weight) { _emptyWeight = weight; } diff --git a/src/FDM/YASim/Airplane.hpp b/src/FDM/YASim/Airplane.hpp index a280efa8a..1f0bb47fc 100644 --- a/src/FDM/YASim/Airplane.hpp +++ b/src/FDM/YASim/Airplane.hpp @@ -16,6 +16,7 @@ class Launchbar; class Thruster; class Hitch; +/// The Airplane class ties together the different components class Airplane : public Version { public: Airplane(); @@ -32,7 +33,7 @@ public: void getPilotAccel(float* out); - void setWeight(float weight); + void setEmptyWeight(float weight); void setWing(Wing* wing); void setTail(Wing* tail); diff --git a/src/FDM/YASim/FGFDM.cpp b/src/FDM/YASim/FGFDM.cpp index acc467fc7..480376b67 100644 --- a/src/FDM/YASim/FGFDM.cpp +++ b/src/FDM/YASim/FGFDM.cpp @@ -227,7 +227,7 @@ void FGFDM::startElement(const char* name, const XMLAttributes &atts) char buf[64]; if(eq(name, "airplane")) { - _airplane.setWeight(attrf(a, "mass") * LBS2KG); + _airplane.setEmptyWeight(attrf(a, "mass") * LBS2KG); if(a->hasAttribute("version")) { _airplane.setVersion( a->getValue("version") ); }