Other Parts Discussed in Thread: CONTROLSUITE, TMDSCNCD28069ISO, MOTORWARE, C2000WARE, MATHLIB
I try to convert Scalar control example from ControlSuite to work with TMDSCNCD28069ISO. In general the process is going on. I decided to go from macros to functions for better debuging.
But I've encountered an error at VHZ_PROF_MACRO(v):
/* Compute slope of V/f profile */ \
v.VfSlope = _IQdiv((v.VoltMax - v.VoltMin),(v.HighFreq - v.LowFreq)); \
_IQdiv always returns 34.63...
_IQmpy works fine, _IQsin too.
Resolved this with calculating intermediate result (with simple float division) and converting the value to _IQ. Tried using mathLib.lib from ControlSuite, Motorware and C2000Ware.
Why does this happen?
Pic as an example.
