第一次修复

This commit is contained in:
刘正航
2026-04-16 17:17:53 +08:00
parent 609eb878d1
commit b39da5ed41
2 changed files with 12 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ typedef struct
int64_t pv_pulse; // 当前的脉冲值
int64_t sv_pulse; // 电脑端的设定脉冲值
int64_t prev_pv_pulse;// 上一次脉冲值,用于检测过零点
int32_t zero_counter; // 过零点步数计数器,每走一步+1或-1到STEP_PER_LAP翻转PA6
} MOTO_T;
extern MOTO_T g_tMoto;