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

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
+21
View File
@@ -0,0 +1,21 @@
#include "PowerManagerFsm.hpp"
// FloatAdjust实现
void FloatAdjust::react(MasterCommandEvent const &) {
PowerManagerFsm::handelPowerCmd();
PowerManagerFsm::handleModCmd();
PowerManagerFsm::handleWorkCmd();
}
void FloatAdjust::entry() {
PowerManagerFsm::entry();
pm->workCondition = WorkCondition::CHANING;
//与巡航模式相同
pm->m_driver.getCRUISE_MODEable(&pm->m_subDisSysCmd);
//依次接入执行机构动力电设备
//TODO:接入执行机构动力电设备
//TODO:解除非必要动力电设备
pm->workCondition = WorkCondition::BUOYANCY_ADJUST;
LOG_F(INFO, "进入浮调模式");
}