瀏覽代碼

feat:ebike负载模型建立完成,实现仿真

guohui27 2 年之前
父節點
當前提交
fee76c5419
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      User project/2.MotorDrive/Source/spdctrFSM.c
  2. 二進制
      tests/sim/FanPlatformAuto.slx

+ 4 - 0
User project/2.MotorDrive/Source/spdctrFSM.c

@@ -533,7 +533,11 @@ void scm_voSpdCtrMdFSM(void) /* parasoft-suppress METRICS-28 "本项目圈复杂
                 }
                 else  
                 {
+#ifdef RUN_ARCH_SIM
+                    Switch_speed_FSM(&ClzLoop_state);                   
+#else                    
                     Switch_speed_FSM(&InitPosDet_state);
+#endif
                 }
             }
         }

二進制
tests/sim/FanPlatformAuto.slx