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.

How to modify the code when using much higher current motor?

Other Parts Discussed in Thread: MOTORWARE

Hello InstaSPIN community,

We have been using DRV8301-HC-EVM and F28069M ISO controlCARD. We spent time running InstaSPIN Projects and finished all labs with our ACIM. Finally we have designed our board.

Everything goes well when we use the ACIM with the max current of 43A. 

Then, we change the current sense with a measure range of ±250A and use an ACIM with the max current of 140A. So the USER_IQ_FULL_SCALE_CURRENT_A is 250.0 and the USER_MOTOR_MAX_CURRENT is 140.0 in user.h. It works normally when we run the labs of InstaSPIN-FOC.

But problems happen when we run tha lab12a and lab12b.It shows some warnings of

"#175-D floating-point value does not fit in required integral type"

and point the code which has "IQ(USER_IQ_FULL_SCALE_CURRENT_A)" in it.

In order to make the board support the high current ACIM, how to modify the code correctly?