Question
Integer conversion resulted in trucation - ID_DEMAG
Posted on March 31, 2014 at 21:32
I am receiving this compiler error in SystemNDrivePrarms.h on lines 8182, 8216, and 8250 when compiling MCTasks.c. (MC version: 3.4.1, IDE: IAR EW for ARM 7.10)
ID_DEMAG, /*!< Demagnetization current in s16A:
Current(Amp) = [Current(s16A) * Vdd micro]/ [65536 * Rshunt * Aop] */ The demagnetisation value I input to MCWB is 5.1Ampere. Did I do something wrong? To work-around, will the algorithm tolerate a maximum representable value that has not truncated? #hj #integer-truncation