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.

How to Program final code to the F28027

Other Parts Discussed in Thread: MOTORWARE

Hello,

I am very green when it comes to programming, so I apologize in advance for the stupid question. So here goes. I have gone through all the labs for the F28027 and have figured out all the gains. The motor is running well. Now how do I program the F28027 so that I don't need the GUI and I can adjust the speed using a reference voltage and a pot?

Thanks,

Chuck

  • the HAL tutorial will help with the POT question.
    C:\ti\motorware\motorware_1_01_00_14\docs\tutorials


    as for the gains, you can simply hardcode them into the existing code. Ex:
    void updateKpKiGains

    instead of passing the values from gMotorVars structure.

    you will also need to hardcode or have some external command (button, etc) to set the flags you learned about for enabling the system, loading user.h, running Rs or Offset, and finally enabling the motor.