38 lines
778 B
C++
38 lines
778 B
C++
|
#include "Controller.h"
|
|||
|
|
|||
|
|
|||
|
Controller::Controller()
|
|||
|
: m_Machine(nullptr)
|
|||
|
//, m_Axis(nullptr)
|
|||
|
, m_StateCtrlWrapper(nullptr)
|
|||
|
, m_SysParamWrapper(nullptr)
|
|||
|
, m_AxisRecordWrapper(nullptr)
|
|||
|
, m_SignalStateWrapper(nullptr) {
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
Controller::~Controller() {
|
|||
|
|
|||
|
//DELP(m_Axis);
|
|||
|
DELP(m_StateCtrlWrapper);
|
|||
|
DELP(m_SysParamWrapper);
|
|||
|
DELP(m_AxisRecordWrapper);
|
|||
|
DELP(m_SignalStateWrapper);
|
|||
|
DELP(m_Machine);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
void Controller::Init() {
|
|||
|
m_StateCtrlWrapper = new StateCtrlWrapper();
|
|||
|
m_SysParamWrapper = new SysParamWrapper();
|
|||
|
m_AxisRecordWrapper = new AxisRecordWrapper();
|
|||
|
m_SignalStateWrapper = new SignalStateWrapper();
|
|||
|
m_Machine = Machine::CreateInstance(MachineTypeCfg::MachineTypeId::HBD_1000);
|
|||
|
|
|||
|
m_Machine->SetAxisAndSignal(m_SysParamWrapper, m_AxisRecordWrapper);
|
|||
|
|
|||
|
}
|