Other Parts Discussed in Thread: MOTORWARE
hi,
I want to convert the IQ values to float values
This works:
return (intr->AdcData.dcBus *(USER_IQ_FULL_SCALE_VOLTAGE_V/1000.0)) / 16777216.0;
this doesn't:
return _IQtoF (_IQmpy((float)intr->AdcData.dcBus,_IQ(USER_IQ_FULL_SCALE_VOLTAGE_V/1000.0)));
I tied many typecast to float. But without success.
What is wrong?


