Torque direction fixed. It was positive when it had to be negative because both differntial amplifiers had the inputs inverted. Now the torque is negative whe the motor spins clock-wise as it should. Up to now the DTC code has been used to estimate data, such as the flux-linkage, when the motor is spinning with the PID controller just to debug.