页次: 1
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之前吗?也就是先对好电磁和电角度.
页次: 1