您尚未登录。

#1 Re: BLDC电机驱动 » 一款成本极低的开源FOC驱动 » 2021-10-14 19:23:06

case 1:
                /* disable timer2 to stop foc calculate loop */
                timer2_disable();
                /* disable timer13 to stop pid calculate loop */
                timer13_disable();
                /* automatic phase sequence detection and correction */
                foc_calibrate_phase();
                /* correct the mechanical angle zero deviation */
                encoder_zeroing();
                /* re-write the parameters to flash */
                flash_write_parameters();
                /* switch the status back to sending data */
                minifoc_fsm_state = 0;
                break;

对于:foc_calibrate_phase();和encoder_zeroing();同时存在,是不是encoder_zeroing();多许了?
encoder_zeroing();不是上电找零电角度吗?不是要放在while之前吗?也就是先对好电磁和电角度.

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn