-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from maisvendoo/develop
Develop
- Loading branch information
Showing
39 changed files
with
2,353 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#ifndef AC_MOTOR_COMPRESSOR_H | ||
#define AC_MOTOR_COMPRESSOR_H | ||
|
||
#include "device.h" | ||
|
||
//------------------------------------------------------------------------------ | ||
// | ||
//------------------------------------------------------------------------------ | ||
class ACMotorCompressor : public Device | ||
{ | ||
public: | ||
|
||
ACMotorCompressor(QObject *parent = Q_NULLPTR); | ||
|
||
~ACMotorCompressor(); | ||
|
||
void setExternalPressure(double press); | ||
|
||
double getAirFlow() const; | ||
|
||
void setU_power(double value); | ||
|
||
private: | ||
|
||
/// Внешнее противодавление | ||
double p; | ||
|
||
/// Расход возхуа | ||
double Q; | ||
|
||
/// "Подача" компрессора | ||
double p0; | ||
|
||
double Mmax; | ||
|
||
double s_kr; | ||
|
||
double Un; | ||
|
||
double U_power; | ||
|
||
double omega0; | ||
|
||
double J; | ||
|
||
double Mxx; | ||
|
||
double Vnk; | ||
|
||
enum | ||
{ | ||
NUM_COEFFS = 6 | ||
}; | ||
|
||
std::array<double, NUM_COEFFS> K; | ||
|
||
void preStep(state_vector_t &Y, double t); | ||
|
||
void ode_system(const state_vector_t &Y, state_vector_t &dYdt, double t); | ||
|
||
void load_config(CfgReader &cfg); | ||
}; | ||
|
||
#endif // ACMOTORCOMPRESSOR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#ifndef AUXILIARY_CONVERTER_H | ||
#define AUXILIARY_CONVERTER_H | ||
|
||
#include "device.h" | ||
|
||
/// Класс Преобразователя Собственных Нужд | ||
class AuxiliaryConverter : public Device | ||
{ | ||
|
||
public: | ||
|
||
/// Конструктор | ||
AuxiliaryConverter(QObject *parent = Q_NULLPTR); | ||
|
||
/// Деструктор | ||
~AuxiliaryConverter(); | ||
|
||
/// Установить напряжение преобразователя собственных нужд | ||
void setU4(double U4); | ||
|
||
/// Получить напряжение | ||
double getU1(); | ||
|
||
/// Получить частоту | ||
double getF(); | ||
|
||
/// получить напряжение (380 В) | ||
double getU2(); | ||
|
||
private: | ||
|
||
/// Напряжение преобразователя собственных нужд | ||
double U4; | ||
|
||
/// Частота | ||
double Fref; | ||
|
||
/// Напряжение | ||
double Uref; | ||
|
||
/// Коэффициент напряжения | ||
double Koef; | ||
|
||
/// Напряжение на выход | ||
double U1; | ||
|
||
/// Частота на выход | ||
double F; | ||
|
||
/// Напряжение 380 на выход | ||
double U2; | ||
|
||
/// Предварительный шаг | ||
void preStep(state_vector_t &Y, double t); | ||
|
||
/// Вычисление напряжения | ||
void ode_system(const state_vector_t &Y, state_vector_t &dYdt, double t); | ||
|
||
/// Загрузка конфига | ||
void load_config(CfgReader &cfg); | ||
}; | ||
|
||
#endif // AUXILIARYCONVERTER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef EP20_BRAKE_MECH_H | ||
#define EP20_BRAKE_MECH_H | ||
|
||
#include "brake-mech.h" | ||
|
||
//------------------------------------------------------------------------------ | ||
// | ||
//------------------------------------------------------------------------------ | ||
class EP20BrakeMech : public BrakeMech | ||
{ | ||
public: | ||
|
||
EP20BrakeMech(QObject *parent = Q_NULLPTR); | ||
|
||
~EP20BrakeMech(); | ||
|
||
private: | ||
|
||
void load_config(CfgReader &cfg); | ||
}; | ||
|
||
#endif // EP20_BRAKE_MECH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef EP20_SIGNALS_H | ||
#define EP20_SIGNALS_H | ||
|
||
enum | ||
{ | ||
KONTROLLER = 0, | ||
RUK_KRM130 = 1, | ||
RUK_KVT224 = 2, | ||
|
||
STRELKA_pTM = 10, | ||
STRELKA_pGR = 11, | ||
STRELKA_pTC = 12, | ||
STRELKA_pUR = 13 | ||
}; | ||
|
||
#endif // EP20_SIGNALS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.