This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F280049C: C2000™ microcontrollers forum

Part Number: LAUNCHXL-F280049C

Hi there,

I noticed in the is02_offset_gain_cal project of instaSPIN-FOC for F28004xC, a first order filter function is used for current/voltage calibration, but I'm pretty confused how the coefficients of filter were set, especially the coefficient b0.  Can you explain a bit? 

as per the project, the b0 is equal to 1/1000 as follows. I think this value should Slightly less than 1, and 1/1000 is too little. 

float32_t b0 = userParams.offsetPole_rps / userParams.ctrlFreq_Hz=20/(20*1000)=1/1000;

Thanks!

  • That depends on the delay wait time and the initial value. It should be fine if the wait time is long enough, but you have to change a higher value if you want to complete the offset calibration in a short time, and doesn't set the right initial value to the offsets.