WIP
This commit is contained in:
parent
f4b7dab913
commit
ad94b56dc2
@ -1,3 +1,5 @@
|
|||||||
add_library(model
|
add_library(model
|
||||||
|
Motor.cpp
|
||||||
|
MotorCase.cpp
|
||||||
Thrustcurve.cpp)
|
Thrustcurve.cpp)
|
||||||
|
|
||||||
|
1
src/model/Motor.cpp
Normal file
1
src/model/Motor.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "Motor.h"
|
39
src/model/Motor.h
Normal file
39
src/model/Motor.h
Normal 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
1
src/model/MotorCase.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "MotorCase.h"
|
23
src/model/MotorCase.h
Normal file
23
src/model/MotorCase.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user