diff --git a/chs2t-autopilot/CMakeLists.txt b/chs2t-autopilot/CMakeLists.txt index c187374..e04c6ef 100644 --- a/chs2t-autopilot/CMakeLists.txt +++ b/chs2t-autopilot/CMakeLists.txt @@ -23,6 +23,7 @@ find_package(Journal ${RRS_VERSION} REQUIRED) find_package(filesystem ${RRS_VERSION} REQUIRED) find_package(device ${RRS_VERSION} REQUIRED) find_package(vehicle ${RRS_VERSION} REQUIRED) +find_package(core ${RRS_VERSION} REQUIRED) # Пути к заголовкам и сорцам file (GLOB INCLUDES "./include/*.h") @@ -42,3 +43,4 @@ target_link_libraries (${TARGET} physics) target_link_libraries (${TARGET} vehicle) target_link_libraries (${TARGET} device) target_link_libraries (${TARGET} filesystem) +target_link_libraries (${TARGET} core) diff --git a/chs2t-autopilot/src/chs2t-autopilot.cpp b/chs2t-autopilot/src/chs2t-autopilot.cpp index 0bda75d..9a26b70 100644 --- a/chs2t-autopilot/src/chs2t-autopilot.cpp +++ b/chs2t-autopilot/src/chs2t-autopilot.cpp @@ -1,5 +1,7 @@ #include +#include + //------------------------------------------------------------------------------ // //------------------------------------------------------------------------------ @@ -48,6 +50,8 @@ void CHS2TAutopilot::initAutoBrakeControl(const QString &config_name, //------------------------------------------------------------------------------ void CHS2TAutopilot::preStep(state_vector_t &Y, double t) { + (void)t; + auto_feedback = dynamic_cast(feedback); if (auto_feedback == nullptr) @@ -163,6 +167,9 @@ void CHS2TAutopilot::ode_system(const state_vector_t &Y, state_vector_t &dYdt, double t) { + (void)Y; + (void)t; + dYdt[0] = Ki * dv; } @@ -280,4 +287,4 @@ void CHS2TAutopilot::slotPosDelay() } } -GET_AUTOPILOT(CHS2TAutopilot) +GET_MODULE(CHS2TAutopilot) diff --git a/chs2t-equipment/include/alsn-ukbm.h b/chs2t-equipment/include/alsn-ukbm.h index 1e90e08..26ae72d 100644 --- a/chs2t-equipment/include/alsn-ukbm.h +++ b/chs2t-equipment/include/alsn-ukbm.h @@ -86,11 +86,11 @@ class SafetyDevice : public Device Timer *safety_timer; - void preStep(state_vector_t &Y, double t); + virtual void preStep(state_vector_t &Y, double t) override; - void ode_system(const state_vector_t &Y, state_vector_t &dYdt, double t); + virtual void ode_system(const state_vector_t &Y, state_vector_t &dYdt, double t) override; - void load_config(CfgReader &cfg); + virtual void load_config(CfgReader &cfg) override; void alsn_process(int code_alsn); diff --git a/chs2t-equipment/include/ampermeters-state.h b/chs2t-equipment/include/ampermeters-state.h index ebb90fe..70a5ac0 100644 --- a/chs2t-equipment/include/ampermeters-state.h +++ b/chs2t-equipment/include/ampermeters-state.h @@ -1,22 +1,14 @@ -#ifndef AMPERMETERS_STATE_H -#define AMPERMETERS_STATE_H +#ifndef AMPERMETERS_STATE_H +#define AMPERMETERS_STATE_H //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- struct ampermeters_state_t { - bool is12on; - bool is34on; - bool is56on; - - ampermeters_state_t() - : is12on(false) - , is34on(false) - , is56on(false) - { - - } + bool is12on{false}; + bool is34on{false}; + bool is56on{false}; }; #endif // AMPERMETERS_STATE_H diff --git a/chs2t-equipment/src/alsn-ukbm.cpp b/chs2t-equipment/src/alsn-ukbm.cpp index 008d95c..eb86f67 100644 --- a/chs2t-equipment/src/alsn-ukbm.cpp +++ b/chs2t-equipment/src/alsn-ukbm.cpp @@ -51,7 +51,7 @@ void SafetyDevice::preStep(state_vector_t &Y, double t) return; } - if (is_red.getState() && v_kmh > 20.0) + if (is_red.getState() && v_kmh > 21.0) return; if (code_alsn < old_code_alsn) @@ -71,7 +71,7 @@ void SafetyDevice::preStep(state_vector_t &Y, double t) epk_state.reset(); lamp_on(RED_LAMP); - if (v_kmh > 20.0) + if (v_kmh > 21.0) { return; } @@ -106,7 +106,7 @@ void SafetyDevice::preStep(state_vector_t &Y, double t) if (code_alsn == 1) { - if (v_kmh > 60.0) + if (v_kmh > 61.0) { epk_state.reset(); return; @@ -124,7 +124,7 @@ void SafetyDevice::preStep(state_vector_t &Y, double t) if (code_alsn == 2) { - if (v_kmh > 60.0) + if (v_kmh > 61.0) { if (!safety_timer->isStarted()) safety_timer->start(); diff --git a/chs2t/CMakeLists.txt b/chs2t/CMakeLists.txt index 66f6032..76b26a9 100644 --- a/chs2t/CMakeLists.txt +++ b/chs2t/CMakeLists.txt @@ -14,6 +14,7 @@ find_package(Journal ${RRS_VERSION} REQUIRED) find_package(filesystem ${RRS_VERSION} REQUIRED) find_package(device ${RRS_VERSION} REQUIRED) find_package(vehicle ${RRS_VERSION} REQUIRED) +find_package(core ${RRS_VERSION} REQUIRED) file (GLOB INCLUDES "./include/*.h") file (GLOB EQP_INCLUDES "../chs2t-equipment/include/*.h") @@ -32,3 +33,4 @@ target_link_libraries (${TARGET} Journal) target_link_libraries (${TARGET} filesystem) target_link_libraries (${TARGET} device) target_link_libraries (${TARGET} vehicle) +target_link_libraries (${TARGET} core) diff --git a/chs2t/include/chs2t.h b/chs2t/include/chs2t.h index 77de22d..27392bb 100644 --- a/chs2t/include/chs2t.h +++ b/chs2t/include/chs2t.h @@ -13,31 +13,61 @@ #ifndef CHS2T_H #define CHS2T_H -#include "vehicle-api.h" +#include +#include #include "switchers-panel.h" #include "km-21kr2.h" -#include "stepswitch.h" -#include "pusk-rez.h" -#include "motor.h" -#include "overload-relay.h" -#include "electropneumovalve-emergency.h" -#include "electropneumovalve-release.h" -#include "dako.h" -#include "generator.h" -#include "pulse-converter.h" -#include "brake-regulator.h" -#include "handle-edt.h" -#include "motor-fan-dc.h" -#include "blinds.h" -#include "hardware-signals.h" -#include "convert-physics-to-modbus.h" -#include "sl2m.h" -#include "energy-counter.h" -#include "alsn-ukbm.h" #include +class AirDistributor; +class AutoTrainStop; +class Blinds; +class BrakeCrane; +class BrakeMech; +class BrakeRegulator; +class CoilALSN; +class Coupling; +class DCMotorCompressor; +class DCMotorFan; +class Dako; +class DecoderALSN; +class EPBControl; +class EPBConverter; +class ElectroAirDistributor; +class ElectroPneumoValveEmergency; +class ElectroPneumoValveRelease; +class EnergyCounter; +class Generator; +class HandleEDT; +class LocoCrane; +class Motor; +class OperatingRod; +class OverloadRelay; +class Pantograph; +class PhysToModbus; +class PneumoAngleCock; +class PneumoCombineCrane; +class PneumoHose; +class PneumoHoseEPB; +class PneumoRelay; +class PneumoShutoffValve; +class PneumoSplitter; +class PressureRegulator; +class ProtectiveDevice; +class PulseConverter; +class PuskRez; +class Registrator; +class Reservoir; +class SL2M; +class SafetyDevice; +class SandingSystem; +class SwitchingValve; +class SpeedMap; +class StepSwitch; +class TrainHorn; + /*! * \class * \brief Основной класс, описывающий весь электровоз @@ -56,7 +86,7 @@ class CHS2T : public Vehicle ~CHS2T(); /// Инициализация тормозных приборов - void initBrakeDevices(double p0, double pBP, double pFL) override; + virtual void initBrakeDevices(double p0, double pBP, double pFL) override; private: diff --git a/chs2t/src/chs2t-init-autopilot.cpp b/chs2t/src/chs2t-init-autopilot.cpp index a272ffb..d0e9cf0 100644 --- a/chs2t/src/chs2t-init-autopilot.cpp +++ b/chs2t/src/chs2t-init-autopilot.cpp @@ -1,4 +1,8 @@ #include + +#include +#include + #include //------------------------------------------------------------------------------ @@ -10,9 +14,10 @@ void CHS2T::initAutopilot(const QString &modules_dir, // Модули автоведения for (auto cab_idx : {CAB1, CAB2}) { - Autopilot *autopilot = loadAutopilot(modules_dir + QDir::separator() - + custom_modules_dir + QDir::separator() + - autopilot_module_name); + Autopilot* autopilot = LOAD_MODULE(Autopilot, + modules_dir + QDir::separator() + + custom_modules_dir + QDir::separator() + + autopilot_module_name); if (autopilot != nullptr) { @@ -25,15 +30,16 @@ void CHS2T::initAutopilot(const QString &modules_dir, autopilot_switcher[cab_idx].setKeySymbolOff(KEY_F); autopilot_switcher[cab_idx].setControl(&pressed_keys); + auto_feedback[cab_idx] = new chs2t_feedback_t(); + autopilot->setFeedback(auto_feedback[cab_idx]); + connect(autopilot, &Autopilot::sigInitTrainParams, this, &CHS2T::slotInitTrainForAutopilot); this->autopilot.push_back(autopilot); - auto_feedback[cab_idx] = new chs2t_feedback_t(); - connect(pantCtrlTimer, &Timer::process, this, &CHS2T::slotPantCtrl); - } - } + } + } } //------------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-init-autostart.cpp b/chs2t/src/chs2t-init-autostart.cpp index 12106f6..ae1d0b2 100644 --- a/chs2t/src/chs2t-init-autostart.cpp +++ b/chs2t/src/chs2t-init-autostart.cpp @@ -1,5 +1,9 @@ #include +#include +#include +#include + //------------------------------------------------------------------------------ // //------------------------------------------------------------------------------ @@ -162,7 +166,7 @@ void CHS2T::slotAutostart() if (auto_start_autopilot) { - autopilot_switcher[autostart_cab].set(); + autopilot_switcher[autostart_cab].set(); } } diff --git a/chs2t/src/chs2t-init-brake-devices.cpp b/chs2t/src/chs2t-init-brake-devices.cpp index 0beab9b..5b9492b 100644 --- a/chs2t/src/chs2t-init-brake-devices.cpp +++ b/chs2t/src/chs2t-init-brake-devices.cpp @@ -1,5 +1,16 @@ #include "chs2t.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "filesystem.h" //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-init-brakes-control.cpp b/chs2t/src/chs2t-init-brakes-control.cpp index 7474f6b..55aa41d 100644 --- a/chs2t/src/chs2t-init-brakes-control.cpp +++ b/chs2t/src/chs2t-init-brakes-control.cpp @@ -1,5 +1,20 @@ #include "chs2t.h" +#include "dako.h" +#include "electropneumovalve-emergency.h" +#include "electropneumovalve-release.h" +#include "handle-edt.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include //------------------------------------------------------------------------ @@ -18,12 +33,12 @@ void CHS2T::initBrakesControl(const QString& modules_dir, const QString& custom_ combine_crane[cab_idx]->read_config("pneumo-combine-crane"); // Поездной кран машиниста - brake_crane[cab_idx] = loadBrakeCrane( + brake_crane[cab_idx] = LOAD_MODULE(BrakeCrane, modules_dir + QDir::separator() + brake_crane_module_name); brake_crane[cab_idx]->read_config(brake_crane_config_name); // Кран вспомогательного тормоза - loco_crane[cab_idx] = loadLocoCrane( + loco_crane[cab_idx] = LOAD_MODULE(LocoCrane, modules_dir + QDir::separator() + loco_crane_module_name); loco_crane[cab_idx]->read_config(loco_crane_config_name); diff --git a/chs2t/src/chs2t-init-brakes-epb.cpp b/chs2t/src/chs2t-init-brakes-epb.cpp index 5962372..01ea9db 100644 --- a/chs2t/src/chs2t-init-brakes-epb.cpp +++ b/chs2t/src/chs2t-init-brakes-epb.cpp @@ -1,5 +1,8 @@ #include "chs2t.h" +#include +#include + //------------------------------------------------------------------------ // //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-init-brakes-equipment.cpp b/chs2t/src/chs2t-init-brakes-equipment.cpp index 0d44568..5855460 100644 --- a/chs2t/src/chs2t-init-brakes-equipment.cpp +++ b/chs2t/src/chs2t-init-brakes-equipment.cpp @@ -1,5 +1,13 @@ #include "chs2t.h" +#include +#include +#include +#include +#include +#include +#include + #include //------------------------------------------------------------------------ @@ -13,11 +21,12 @@ void CHS2T::initBrakesEquipment(const QString& modules_dir, const QString& custo brakepipe->setLeakCoeff(3e-6); // Воздухораспределитель - air_dist = loadAirDistributor(modules_dir + QDir::separator() + airdist_module_name); + air_dist = LOAD_MODULE(AirDistributor, modules_dir + QDir::separator() + airdist_module_name); air_dist->read_config(airdist_config_name); // Электровоздухораспределитель - electro_air_dist = loadElectroAirDistributor(modules_dir + QDir::separator() + electro_airdist_module_name); + electro_air_dist = LOAD_MODULE(ElectroAirDistributor, + modules_dir + QDir::separator() + electro_airdist_module_name); electro_air_dist->read_config(electro_airdist_config_name); // Запасный резервуар @@ -45,11 +54,13 @@ void CHS2T::initBrakesEquipment(const QString& modules_dir, const QString& custo anglecock_bp_bwd->setPipeVolume(volume_bp); // Рукава тормозной магистрали - hose_bp_fwd = loadPneumoHoseEPB(modules_dir + QDir::separator() + "hose369a"); + hose_bp_fwd = LOAD_MODULE(PneumoHoseEPB, + modules_dir + QDir::separator() + "hose369a"); hose_bp_fwd->read_config("pneumo-hose-BP369a-loco"); forward_connectors.push_back(hose_bp_fwd); - hose_bp_bwd = loadPneumoHoseEPB(modules_dir + QDir::separator() + "hose369a"); + hose_bp_bwd = LOAD_MODULE(PneumoHoseEPB, + modules_dir + QDir::separator() + "hose369a"); hose_bp_bwd->read_config("pneumo-hose-BP369a-loco"); backward_connectors.push_back(hose_bp_bwd); } diff --git a/chs2t/src/chs2t-init-couplings.cpp b/chs2t/src/chs2t-init-couplings.cpp index edd7a38..fc1549d 100644 --- a/chs2t/src/chs2t-init-couplings.cpp +++ b/chs2t/src/chs2t-init-couplings.cpp @@ -1,5 +1,9 @@ #include "chs2t.h" +#include +#include +#include + #include //------------------------------------------------------------------------ @@ -10,10 +14,13 @@ void CHS2T::initCouplings(const QString& modules_dir, const QString& custom_cfg_ (void) custom_cfg_dir; // Сцепные устройства - coupling_fwd = loadCoupling(modules_dir + QDir::separator() + coupling_module_name); + coupling_fwd = LOAD_MODULE(Coupling, + modules_dir + QDir::separator() + coupling_module_name); coupling_fwd->read_config(coupling_config_name); forward_connectors.push_back(coupling_fwd); - coupling_bwd = loadCoupling(modules_dir + QDir::separator() + coupling_module_name); + + coupling_bwd = LOAD_MODULE(Coupling, + modules_dir + QDir::separator() + coupling_module_name); coupling_bwd->read_config(coupling_config_name); backward_connectors.push_back(coupling_bwd); diff --git a/chs2t/src/chs2t-init-pneumo-supply.cpp b/chs2t/src/chs2t-init-pneumo-supply.cpp index b992917..e13def9 100644 --- a/chs2t/src/chs2t-init-pneumo-supply.cpp +++ b/chs2t/src/chs2t-init-pneumo-supply.cpp @@ -1,5 +1,11 @@ #include "chs2t.h" +#include +#include +#include +#include +#include + //------------------------------------------------------------------------ // //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-init-safety-device.cpp b/chs2t/src/chs2t-init-safety-device.cpp index 4af9f20..7e570e4 100644 --- a/chs2t/src/chs2t-init-safety-device.cpp +++ b/chs2t/src/chs2t-init-safety-device.cpp @@ -1,4 +1,14 @@ #include + +#include "alsn-ukbm.h" +#include "sl2m.h" + +#include +#include +#include +#include +#include + #include //------------------------------------------------------------------------------ @@ -32,7 +42,7 @@ void CHS2T::initSafetyDevices(const QString& modules_dir, const QString& custom_ speed_meter[cab_idx]->read_config("3SL-2M", custom_cfg_dir); // ЭПК автостопа - epk[cab_idx] = loadAutoTrainStop(modules_dir + QDir::separator() + "epk150"); + epk[cab_idx] = LOAD_MODULE(AutoTrainStop, modules_dir + QDir::separator() + "epk150"); epk[cab_idx]->read_config("epk150"); // Дешифратор АЛСН diff --git a/chs2t/src/chs2t-init-tumblers.cpp b/chs2t/src/chs2t-init-tumblers.cpp index 6eae477..397dc91 100644 --- a/chs2t/src/chs2t-init-tumblers.cpp +++ b/chs2t/src/chs2t-init-tumblers.cpp @@ -1,5 +1,17 @@ #include "chs2t.h" +#include "handle-edt.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------ // //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-init.cpp b/chs2t/src/chs2t-init.cpp index 5bbe6ba..6db8e9c 100644 --- a/chs2t/src/chs2t-init.cpp +++ b/chs2t/src/chs2t-init.cpp @@ -1,5 +1,22 @@ #include "chs2t.h" +#include "blinds.h" +#include "brake-regulator.h" +#include "convert-physics-to-modbus.h" +#include "energy-counter.h" +#include "generator.h" +#include "motor.h" +#include "overload-relay.h" +#include "pulse-converter.h" +#include "pusk-rez.h" +#include "stepswitch.h" + +#include +#include +#include +#include +#include + #include //------------------------------------------------------------------------------ @@ -82,7 +99,8 @@ void CHS2T::initEDT(const QString& modules_dir, const QString& custom_cfg_dir) //------------------------------------------------------------------------------ void CHS2T::initOtherEquipment(const QString& modules_dir, const QString& custom_cfg_dir) { - (void) modules_dir; + (void)modules_dir; + (void)custom_cfg_dir; for (auto cab_idx : {CAB1, CAB2}) { diff --git a/chs2t/src/chs2t-load-config.cpp b/chs2t/src/chs2t-load-config.cpp index 3c9f670..8215ca4 100644 --- a/chs2t/src/chs2t-load-config.cpp +++ b/chs2t/src/chs2t-load-config.cpp @@ -1,5 +1,12 @@ #include "chs2t.h" +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------------ // Загрузка данных из конфигурационного файла //------------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-process-debug.cpp b/chs2t/src/chs2t-process-debug.cpp index 03936b1..be084e1 100644 --- a/chs2t/src/chs2t-process-debug.cpp +++ b/chs2t/src/chs2t-process-debug.cpp @@ -1,5 +1,25 @@ #include "chs2t.h" +#include "alsn-ukbm.h" +#include "generator.h" +#include "motor.h" +#include "stepswitch.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------------ // //------------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-process-keyprocess.cpp b/chs2t/src/chs2t-process-keyprocess.cpp index f14618e..0618eb8 100644 --- a/chs2t/src/chs2t-process-keyprocess.cpp +++ b/chs2t/src/chs2t-process-keyprocess.cpp @@ -1,4 +1,8 @@ -#include "chs2t.h" +#include "chs2t.h" + +#include +#include +#include //------------------------------------------------------------------------------ // diff --git a/chs2t/src/chs2t-process-signals.cpp b/chs2t/src/chs2t-process-signals.cpp index 5ab42ae..d2c482d 100644 --- a/chs2t/src/chs2t-process-signals.cpp +++ b/chs2t/src/chs2t-process-signals.cpp @@ -1,6 +1,29 @@ #include "chs2t.h" +#include "alsn-ukbm.h" +#include "blinds.h" +#include "generator.h" +#include "handle-edt.h" +#include "motor.h" #include "chs2t-signals.h" +#include "sl2m.h" +#include "stepswitch.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include //------------------------------------------------------------------------------ // diff --git a/chs2t/src/chs2t-process-sounds.cpp b/chs2t/src/chs2t-process-sounds.cpp index e80b565..b6a3dc0 100644 --- a/chs2t/src/chs2t-process-sounds.cpp +++ b/chs2t/src/chs2t-process-sounds.cpp @@ -1,5 +1,21 @@ #include "chs2t.h" + #include "chs2t-signals.h" +#include "generator.h" +#include "motor.h" +#include "sl2m.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include //------------------------------------------------------------------------------ // diff --git a/chs2t/src/chs2t-registrate.cpp b/chs2t/src/chs2t-registrate.cpp index 81e662b..beb341f 100644 --- a/chs2t/src/chs2t-registrate.cpp +++ b/chs2t/src/chs2t-registrate.cpp @@ -1,5 +1,10 @@ #include "chs2t.h" +#include "generator.h" +#include "motor.h" + +#include + //------------------------------------------------------------------------------ // //------------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-step-autopilot.cpp b/chs2t/src/chs2t-step-autopilot.cpp index 6a7b4f1..a267dad 100644 --- a/chs2t/src/chs2t-step-autopilot.cpp +++ b/chs2t/src/chs2t-step-autopilot.cpp @@ -1,5 +1,19 @@ #include +#include "alsn-ukbm.h" +#include "motor.h" +#include "stepswitch.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------------ // //------------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-step-brakes-control.cpp b/chs2t/src/chs2t-step-brakes-control.cpp index cd526e6..1390d10 100644 --- a/chs2t/src/chs2t-step-brakes-control.cpp +++ b/chs2t/src/chs2t-step-brakes-control.cpp @@ -1,5 +1,22 @@ #include "chs2t.h" +#include "dako.h" +#include "electropneumovalve-emergency.h" +#include "electropneumovalve-release.h" +#include "generator.h" +#include "handle-edt.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------ // //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-step-brakes-epb.cpp b/chs2t/src/chs2t-step-brakes-epb.cpp index 048a993..2bc2af1 100644 --- a/chs2t/src/chs2t-step-brakes-epb.cpp +++ b/chs2t/src/chs2t-step-brakes-epb.cpp @@ -1,5 +1,14 @@ #include "chs2t.h" +#include "handle-edt.h" + +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------ // //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-step-brakes-equipment.cpp b/chs2t/src/chs2t-step-brakes-equipment.cpp index a838dab..fded4e8 100644 --- a/chs2t/src/chs2t-step-brakes-equipment.cpp +++ b/chs2t/src/chs2t-step-brakes-equipment.cpp @@ -1,5 +1,15 @@ #include "chs2t.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------ // //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-step-couplings.cpp b/chs2t/src/chs2t-step-couplings.cpp index cda298d..06806db 100644 --- a/chs2t/src/chs2t-step-couplings.cpp +++ b/chs2t/src/chs2t-step-couplings.cpp @@ -1,5 +1,8 @@ #include "chs2t.h" +#include +#include + //------------------------------------------------------------------------ // //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-step-edt.cpp b/chs2t/src/chs2t-step-edt.cpp index 2b58eec..c57bed3 100644 --- a/chs2t/src/chs2t-step-edt.cpp +++ b/chs2t/src/chs2t-step-edt.cpp @@ -1,4 +1,11 @@ -#include "chs2t.h" +#include "chs2t.h" + +#include "brake-regulator.h" +#include "dako.h" +#include "generator.h" +#include "pulse-converter.h" + +#include //------------------------------------------------------------------------------ // diff --git a/chs2t/src/chs2t-step-pneumo-supply.cpp b/chs2t/src/chs2t-step-pneumo-supply.cpp index 02965eb..022d1bb 100644 --- a/chs2t/src/chs2t-step-pneumo-supply.cpp +++ b/chs2t/src/chs2t-step-pneumo-supply.cpp @@ -1,5 +1,19 @@ #include "chs2t.h" +#include "dako.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------ // //------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-step-safety-device.cpp b/chs2t/src/chs2t-step-safety-device.cpp index 8bfed2c..6cd8626 100644 --- a/chs2t/src/chs2t-step-safety-device.cpp +++ b/chs2t/src/chs2t-step-safety-device.cpp @@ -1,5 +1,13 @@ #include "chs2t.h" +#include "alsn-ukbm.h" +#include "sl2m.h" + +#include +#include +#include +#include + //------------------------------------------------------------------------------ // //------------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t-step.cpp b/chs2t/src/chs2t-step.cpp index 95c4a66..ea38e00 100644 --- a/chs2t/src/chs2t-step.cpp +++ b/chs2t/src/chs2t-step.cpp @@ -1,5 +1,22 @@ #include "chs2t.h" +#include "blinds.h" +#include "electropneumovalve-emergency.h" +#include "energy-counter.h" +#include "generator.h" +#include "motor.h" +#include "overload-relay.h" +#include "pusk-rez.h" +#include "stepswitch.h" + +#include +#include +#include +#include +#include +#include +#include + //------------------------------------------------------------------------------ // //------------------------------------------------------------------------------ diff --git a/chs2t/src/chs2t.cpp b/chs2t/src/chs2t.cpp index 3aac847..cfd0955 100644 --- a/chs2t/src/chs2t.cpp +++ b/chs2t/src/chs2t.cpp @@ -12,10 +12,18 @@ //------------------------------------------------------------------------------ #include "chs2t.h" + #include "chs2t-signals.h" +#include "convert-physics-to-modbus.h" + +#include +#include +#include #include "filesystem.h" +#include + //------------------------------------------------------------------------------ // Конструктор //------------------------------------------------------------------------------ @@ -154,7 +162,7 @@ void CHS2T::step(const double& t, const double& dt) registrate(t, dt); - autoStartTimer->step(t, dt); + autoStartTimer->step(t, dt); pantCtrlTimer->step(t, dt); } @@ -192,4 +200,4 @@ void CHS2T::hardwareOutput() feedback_signals.analogSignal[4].cur_value = TC_manometer->getModbus(brake_mech[0]->getBCpressure()); } -GET_VEHICLE(CHS2T) +GET_MODULE(CHS2T)