Hey man, thanks! I feel stupid. I was convinced I was in CONTROL_MODE_TORQUE_CONTROL but I was in CONTROL_MODE_POSITION_CONTROL. Very stupid of me but still interesting behaviour. Would still be interested in explaination.
That’s some strange behaviour I must say. Where did you get your constant 8.27/140 ~= 0.06 from? Was that trial and error to try to get the plots to line up? Or is that the motor’s torque constant?
That is the formula from this page: https://docs.odriverobotics.com/commands under Motor current and torque estimation. Explaination of the formula is given here: Where does the formula for calculating torque come from? - #2 by madcowswe . But still after I reversed before mentioned mistake I got that torque from current is larger than setpoint value and always with the ratio 1.4767858081772214. So i guess formula still needs to be calibratated for given motor.
No, for largest torques (around 2Nm) my current is 5-6A.