Hi
I wanted to calculate the torque estimation, by knowing the motor current. I used the following command to measure the motor current:
axis0.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL
axis0.controller.config.control_mode = 1 (which is in current control mode)
axis0.controller.current_setpoint = 5
axis0.motor.current_control.Iq_setpoint
axis0.motor.current_control.Iq_measured
However, they won’t measure anything.
I assume that the measured motor current should be measured as 5, but it always measure 0.0A.
I have no error.
What should I do ?
My Environment
- Motor:Herlea X8318S KV100,KV120 outrunner Brushless Motor
(https://herlea.en.alibaba.com/product/60832755774-810252113/Herlea_X8318S_KV100_KV120_outrunner_Brushless_Motor_For_RC_Aircraft_remote_control_UAV_drone.html) - Encoder:AS5047P-TS_EK_AB
(https://media.digikey.com/pdf/Data%20Sheets/Austriamicrosystems%20PDFs/AS5047P-TS_EK_AB.pdf ) - Driver:ODrive v3.6 24V
- Ubuntu18.04 Python3.7