0712提交

This commit is contained in:
zjk
2025-07-12 15:39:28 +08:00
parent 4116397f3e
commit 2ef5fd92ac
32 changed files with 3601 additions and 458 deletions
+7 -6
View File
@@ -3,17 +3,18 @@
// 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, "检测到抛载,所有水声设备关闭");
LOG_F(INFO, "检测到抛载");
}
}
void FaultState::react(FaultEvent const & e) {
LOG_F(INFO, "FaultState 处理故障事件");
}
void FaultState::react(MasterCommandEvent const &) {
PowerManagerFsm::handelPowerCmd();
PowerManagerFsm::handleModCmd();
PowerManagerFsm::handleWorkCmd();
}