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.

Motorware pro_lab05C question - without hall sensor based velocity control

Hello...

The velocity control using a pro_lab05C project. The declaration of #ifndef QEP declared in main.h have not been able to make sure that where it is declared.

Where are this QEP is source define ?

In addition, like that can be checked in the parameter gMotorVars.Idq to check the motor current. API to convert the actual current?

  • Hong,

    I'm not sure that I follow.  Proj_lab05c doesn't include software to use an encoder.  If you want to use an encoder you will need to use proj_lab12a which has the same functionality as proj_lab05c.

    The QEP define is set through the tool settings.  Look under the compiler settings for preprocessor defines.

    The values in gMotorVars should all be in real units, but not every lab implements the code to write out every variable in gMotorVars.