WSF
WsfAngleOfAttack.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11// ****************************************************************************
12// Updated by Infoscitex, a DCS Company.
13// ****************************************************************************
14
15#ifndef WSFANGLEOFATTACK_HPP
16#define WSFANGLEOFATTACK_HPP
17
18#include "wsf_export.h"
19
20#include <memory>
21#include <vector>
22
23class UtInput;
24
27{
28public:
30
31 bool ProcessInput(UtInput& aInput);
32
33 double GetPitch(double aFlightPathAngle, double aAltitude, double aSpeed);
34
35 class AOA_Row
36 {
37 public:
38 float mAltitude;
39 std::vector<float> mSpeeds;
40 std::vector<float> mAngles;
41 };
42
44 {
45 public:
46 std::vector<AOA_Row> mRows;
47 };
48
49private:
50 double GetAngleOfAttack(double aAltitude, double aSpeed);
51
52 double GetAngleOfAttack(double aSpeed, const AOA_Row& aRow) const;
53
54 std::shared_ptr<AOA_Table> mAOA_TablePtr;
55 double mLastAOA_Altitude;
56 double mLastAOA_Speed;
57 double mLastAOA;
58};
59
60#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfAngleOfAttack.hpp:36
float mAltitude
Definition WsfAngleOfAttack.hpp:38
std::vector< float > mSpeeds
Definition WsfAngleOfAttack.hpp:39
std::vector< float > mAngles
Definition WsfAngleOfAttack.hpp:40
Definition WsfAngleOfAttack.hpp:44
std::vector< AOA_Row > mRows
Definition WsfAngleOfAttack.hpp:46
WsfAngleOfAttack()
Definition WsfAngleOfAttack.cpp:23
double GetPitch(double aFlightPathAngle, double aAltitude, double aSpeed)
Returns the pitch of the platform after the angle-of-attack is applied.
Definition WsfAngleOfAttack.cpp:31
bool ProcessInput(UtInput &aInput)
Definition WsfAngleOfAttack.cpp:45
Copyrights Multiple, All Rights Reserved