Hi,
The terms psCtrl_sCtrl_f32IAlpha_1, psCtrl_sCtrl_a32IGain, psCtrl_sCtrl_a32PGain etc., are available only in AMCLIB_PMSMBemfObsrvAB_F16 library file. Here in MKV10Z32VLC7 the files are missing so I can't able to find out these values.
There is no backemf observer available for ALPHA and BETA terms, available only for D and Q terms.
Here we are porting the code from MC56F82726 to MKV10Z32VLC7. AMCLIB_PMSMBemfObsrvAB_F16 is available in MC56F82726 but not in KV10.
In MC56F82726 we proceeded with the following format:
* First we have calculated the ABC phase current iABC
* Through Clark transformation iABC in converted to iAlpha and iBeta
* We have calculated the voltage of alpha and beta (vAlpha and vBeta) and initial speed internally
* Using above iAlpha&iBeta, vAlpha&vBeta and speed in AMCLIB_PMSMBemfObsrvAB_F16 we have found out sin and cos components from ACLIB_BEMF_OBSRV_AB_T of AMCLIB_PMSMBemfObsrvAB_F16.
* From the sin and cos components we have calculated the angel and speed by using ACLIB_AngleTrackObsrv.
* Then we carried out park transformation, decoupling, parkinv transformation upto SVM.
The above flow is working correctly in MC56F82726.
But while porting to KV10 the AMCLIB_PMSMBemfObsrvAB_F16 is not available only AMCLIB_PMSMBemfObsrvDQ is available. So I need to change the code based on the available library files.
In KV10 we have only AMCLIB_PMSMBemfObsrvDQ function, so how to process with the same to find out the angel and speed. What changes need to be done in code ??