10 2023 档案

摘要:首先获得当前时刻的时间点 std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds> tp = std::chrono::time_point_cast<std::chrono::milliseconds 阅读全文
posted @ 2023-10-25 17:22 pomolnc 阅读(493) 评论(0) 推荐(0)
摘要:背景 程序接入一个手柄作为输入设备,手柄摇杆的位置值可能被其他任务(可能不止一个)所使用。 解决方案 由于只有其他任务只会使用手柄数据,而不会写入,对其他任务来说,手柄数据是只读的。可以使用一个任务读取手柄数据,而其他任务通过接口读取即可。手柄对象设计采用单例模式,数据采集任务中通过一个手柄对象去读 阅读全文
posted @ 2023-10-23 16:51 pomolnc 阅读(95) 评论(0) 推荐(0)
摘要:title: aliases: tags: - 工程技术 - cpp/并发编程 category: - 方法 stars: url: creation-time: 2023-10-19 14:32 modification-time: 2023-10-19 15:27:06 [[单例模式]]简而言之 阅读全文
posted @ 2023-10-19 15:27 pomolnc 阅读(107) 评论(0) 推荐(0)
摘要:title: aliases: tags: - cmake - boost category: - 方法 stars: url: creation-time: 2023-10-13 09:46 modification-time: 2023-10-14 11:00:47 在此之前,我们已经 [[使用 阅读全文
posted @ 2023-10-14 11:01 pomolnc 阅读(550) 评论(0) 推荐(0)
摘要:title: aliases: tags: - cmake category: - 方法 stars: url: creation-time: 2023-10-12 14:54 modification-time: 2023-10-12 15:04:12 场景 对整个项目进行了编译选项设置,把所有警 阅读全文
posted @ 2023-10-12 20:21 pomolnc 阅读(198) 评论(0) 推荐(0)
摘要:title: aliases: tags: - cpp/编程规范 category: - 方法 stars: url: creation-time: 2023-10-12 10:22 modification-time: 2023-10-12 10:57:47 [[Cpp]] 中给出了 using 阅读全文
posted @ 2023-10-12 20:18 pomolnc 阅读(53) 评论(0) 推荐(0)
摘要:title: aliases: tags: - cpp/函数 category: - 方法 stars: url: creation-time: 2023-10-09 19:24 modification-time: 2023-10-10 14:20:19 [[Cpp]] 函数的默认值写法: voi 阅读全文
posted @ 2023-10-11 20:13 pomolnc 阅读(116) 评论(0) 推荐(0)
摘要:title: aliases: - python列表按元素排序 tags: - Python/数据处理 category: stars: url: creation-time: 2023-07-31 15:26 modification-time: #!/usr/bin/python # -*- c 阅读全文
posted @ 2023-10-11 20:12 pomolnc 阅读(35) 评论(0) 推荐(0)
摘要:title: aliases: tags: - cpp/单元测试 - cmake - 工程技术 category: - 方法 stars: url: creation-time: 2023-10-11 19:02 modification-time: 这里主要介绍从 0 开始实现基本的单元测试功能。 阅读全文
posted @ 2023-10-11 19:40 pomolnc 阅读(106) 评论(0) 推荐(0)
摘要:这里主要是希望在 vscode 中编写 CMakeList.txt 过程中,对 [[cmake]] 语言进行 format 处理。 首先在 vscode 中安装 cmake-format 插件 cmake-format - Visual Studio Marketplace 然后需要安装 cmake 阅读全文
posted @ 2023-10-11 19:01 pomolnc 阅读(872) 评论(0) 推荐(0)