THanks for the link. I learned a lot. If I understand the concept correctly, you are measuring how many amps the motor is drawing. You are feeding that value into the microcontroller where you use it to determine the level of signal sent to the motor, via PID math.
In other words, you are targeting constant torque and you maintain it by measuring current and matching it proportionately with PWM.
Did I get that right?