0712提交
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user