WIP
This commit is contained in:
parent
61a64981f4
commit
f538dd2a52
@ -16,7 +16,7 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
namespace Utils
|
||||
namespace utils
|
||||
{
|
||||
|
||||
CurlConnection::CurlConnection()
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <curl/curl.h>
|
||||
#include <vector>
|
||||
|
||||
namespace Utils
|
||||
namespace utils
|
||||
{
|
||||
|
||||
class CurlConnection
|
||||
|
16
src/Utils/math/Constants.h
Normal file
16
src/Utils/math/Constants.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef UTILS_MATH_CONSTANTS_H
|
||||
#define UTILS_MATH_CONSTANTS_H
|
||||
|
||||
namespace utils::math
|
||||
{
|
||||
|
||||
struct Constants
|
||||
{
|
||||
static const double Rstar = 8.3144598;
|
||||
static const double g0 = 9.80665;
|
||||
static const double airMolarMass = 0.0289644;
|
||||
static const double standardTemperature = 288.15;
|
||||
};
|
||||
|
||||
} // namespace utils::math
|
||||
#endif // UTILS_MATH_CONSTANTS_H
|
19
src/sim/USStandardAtmosphere.cpp
Normal file
19
src/sim/USStandardAtmosphere.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include "USStandardAtmosphere.h"
|
||||
|
||||
#include "Utils/math/Constants.h"
|
||||
|
||||
namespace sim
|
||||
{
|
||||
|
||||
USStandardAtmosphere::USStandardAtmosphere()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
USStandardAtmosphere::~USStandardAtmosphere()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
} // namespace sim
|
25
src/sim/USStandardAtmosphere.h
Normal file
25
src/sim/USStandardAtmosphere.h
Normal file
@ -0,0 +1,25 @@
|
||||
#ifndef SIM_USSTANDARDATMOSPHERE_H
|
||||
#define SIM_USSTANDARDATMOSPHERE_H
|
||||
|
||||
#include "AtmosphericModel.h"
|
||||
|
||||
namespace sim
|
||||
{
|
||||
|
||||
class USStandardAtmosphere : public AtmosphericModel
|
||||
{
|
||||
public:
|
||||
USStandardAtmosphere();
|
||||
virtual ~USStandardAtmosphere();
|
||||
|
||||
double getDensity(double altitude) override;
|
||||
double getPressure(double altitude) override;
|
||||
double getTemperature(double altitude) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // namespace sim
|
||||
#endif // SIM_USSTANDARDATMOSPHERE_H
|
Loading…
x
Reference in New Issue
Block a user