1
0
Fork 0

YASim Wing method name clarification (SMC is not MAC).

This commit is contained in:
Henning Stahlke 2017-03-16 09:43:41 +01:00
parent bb9a8a1850
commit c61730db92
2 changed files with 3 additions and 3 deletions

View file

@ -370,7 +370,7 @@ float Airplane::compileWing(Wing* w)
_wingsN->getNode("wing-span", true)->setFloatValue(w->getSpan()); _wingsN->getNode("wing-span", true)->setFloatValue(w->getSpan());
_wingsN->getNode("wing-area", true)->setFloatValue(w->getArea()); _wingsN->getNode("wing-area", true)->setFloatValue(w->getArea());
_wingsN->getNode("aspect-ratio", true)->setFloatValue(w->getAspectRatio()); _wingsN->getNode("aspect-ratio", true)->setFloatValue(w->getAspectRatio());
_wingsN->getNode("mean-chord", true)->setFloatValue(w->getMAC()); _wingsN->getNode("standard-mean-chord", true)->setFloatValue(w->getSMC());
} }
float wgt = 0; float wgt = 0;

View file

@ -73,7 +73,7 @@ public:
float getSpan() { return _wingspan; }; float getSpan() { return _wingspan; };
float getArea() { return _wingspan*_meanChord; }; float getArea() { return _wingspan*_meanChord; };
float getAspectRatio() { return _aspectRatio; }; float getAspectRatio() { return _aspectRatio; };
float getMAC() { return _meanChord; }; float getSMC() { return _meanChord; };
int numSurfaces() { return _surfs.size(); } int numSurfaces() { return _surfs.size(); }
Surface* getSurface(int n) { return ((SurfRec*)_surfs.get(n))->surface; } Surface* getSurface(int n) { return ((SurfRec*)_surfs.get(n))->surface; }
@ -113,7 +113,7 @@ private:
// calculated from above // calculated from above
float _tip[3]; float _tip[3];
float _meanChord; float _meanChord; // std. mean chord
float _wingspan; float _wingspan;
float _aspectRatio; float _aspectRatio;