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.

Is bandwidth in IQ20 or IQ24?

Other Parts Discussed in Thread: MOTORWARE

Hi all


What is the IQ of bandwidth?

IQ24?

STPOSCTL_setBandwidth_radps(obj->posCtlHandle, _IQ24(USER_SYSTEM_BANDWIDTH)); in spintac_position.h

static inline void STPOSCTL_setBandwidth_radps(ST_POSCTL_Handle handle, _iq20 bw) in spintac_pos_ctl.h

I had to mod the first line to say _IQ20 so that the value in user.h appears as the same value in the debugger when you use IQ20 on the bw variable.

Cheers

Rich

  • Rich,

    Bandwidth should always be an IQ20 variable in MotorWare 14.  In previous MotorWares it was bandwidth scale which was an IQ24 variable.  

    Looks like there was a typo in that line in spintac_position.h.  I'll update it and send it in to be corrected in a future MotorWare.