- 新增 MotionTickThread 线程模块 - main.cpp: 引入双线程架构(UserAppThread + MotionTickThread) - Axis: 新增 cycle() 接口,添加 #pragma once 头文件保护 - App/CMakeLists.txt: 链接 pthread,重组源文件列表 - .gitignore: 排除 docs/html、.vscode、compile_commands.json
27 lines
364 B
C++
27 lines
364 B
C++
/**
|
|
* @file Axis.cpp
|
|
* @author
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2026-07-02
|
|
*
|
|
* @copyright Copyright (c) 2026
|
|
*
|
|
*/
|
|
#include <string>
|
|
#include "Types.h"
|
|
#include "Axis.h"
|
|
|
|
namespace plcopen {
|
|
Axis::Axis(UINT axisNo, std::string name) {
|
|
ref_.axisNo = axisNo;
|
|
ref_.axisName = std::move(name);
|
|
ref_.axis = this;
|
|
}
|
|
|
|
void Axis::cycle()
|
|
{
|
|
|
|
}
|
|
|
|
} |