修改了次级配电协议,优化消息结构

This commit is contained in:
zjk
2025-05-14 10:02:47 +08:00
parent a0e16ec538
commit 476be20025
43 changed files with 2229 additions and 1226 deletions
+19
View File
@@ -0,0 +1,19 @@
#include "PowerManagerFsm.hpp"
// FaultState实现
void FaultState::entry() {
PowerManagerFsm::entry();
// PowerManagerFsm::pm->printState("FaultState", "进入故障状态");
if(pm->m_missionState.type == TaskType::THROW_LOAD)
{
LOG_F(INFO, "检测到抛载,所有水声探测设备");
}
else
{
// LOG_F(INFO, "检测到抛载,所有水声设备关闭");
}
}
void FaultState::react(FaultEvent const & e) {
LOG_F(INFO, "FaultState 处理故障事件");
}