This commit is contained in:
Travis Hunter 2023-02-16 19:04:06 -07:00
parent f4b7dab913
commit ad94b56dc2
5 changed files with 66 additions and 0 deletions

View File

@ -1,3 +1,5 @@
add_library(model
Motor.cpp
MotorCase.cpp
Thrustcurve.cpp)

1
src/model/Motor.cpp Normal file
View File

@ -0,0 +1 @@
#include "Motor.h"

39
src/model/Motor.h Normal file
View File

@ -0,0 +1,39 @@
#ifndef MODEL_MOTOR_H
#define MODEL_MOTOR_H
#include <string>
#include "Thrustcurve.h"
#include "MotorCase.h"
class Motor
{
public:
Motor();
~Motor();
private:
std::string manufacturer;
char impulseClass;
std::string propType;
bool sparky;
// Thrust parameters
double totalImpulse;
double avgImpulse;
int delay;
double burnTime;
double isp;
MotorCase motorCase;
Thrustcurve thrust;
// Physical dimensions
int diameter;
int length;
double totalWeight;
double propWeight;
};
#endif // MODEL_MOTOR_H

1
src/model/MotorCase.cpp Normal file
View File

@ -0,0 +1 @@
#include "MotorCase.h"

23
src/model/MotorCase.h Normal file
View File

@ -0,0 +1,23 @@
#ifndef MODEL_MOTORCASE_H
#define MODEL_MOTORCASE_H
enum class MotorManufacturerEnum
{
AEROTECH,
CESARONI,
LOKI,
AMW,
ESTES
};
class MotorCase
{
public:
MotorCase();
~MotorCase();
private:
};
#endif // MODEL_MOTORCASE_H