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.

TMS320F28054F: MotorWare Quadrature and Direct Voltage Conversions

Part Number: TMS320F28054F
Other Parts Discussed in Thread: MOTORWARE

Hello,

I have MotorWare running on this chip in order to control a KV100 motor. I've adjusted the USER_IQ_FULL_VOLTAGE value to match the motor specs in my user.h file. Motor operation is working fine and I'm controlling it over CAN. I'd like to receive quadrature and direct voltages for data logging. 

Right now, I'm using the following lines to accomplish this:
ECanaMboxes.MBOX24.MDL.all = CTRL_getVd_out_pu(ctrlHandle)

ECanaMboxes.MBOX25.MDL.all = CTRL_getVq_out_pu(ctrlHandle) 

Both return an IQ24 number which I then transmit to desktop software that handles CAN logging and commands. In the desktop software I want to convert this raw fixed point number into Volts. Right now I'm using 

scaledVal = ((double)val / 16777216.0) * 48.0

where val is the IQ24 number I'm getting over CAN from the controller, 48.0 is USER_IQ_FULL_SCALE_VOLTAGE_V, and 16777216.0 is the factor that seems to convert regular floating point into fixed point IQ24. 

How do I go about actually converting the Vd and Vq voltage values into Volts?

Thank you!