Debugging DTC. When DTC  torque reference is inverted the torque still bounces between positive and negative. Apart from that, It has been enabled a print option that prints most of the important variables (currents, voltages, flux-linkages, torques, frequencies and so on).