Hi. I have studied the code how the voltage is measured in phase A. When measuring, ODrive remains in the state Sexten = 1. I want to modify the code to measure the resistances of phases B and C. I would like to make the code similar to the original one:
actual_current_ = Alpha_beta->first;
test_voltage_ += (kI * current_meas_period) * (target_current_ - actual_current_);
I_beta_ += (kIBetaFilt * current_ma_period) * (I alpha_beta->second_beta_);
So can I correctly programmatically switch ODrive when calibrating the motor to measure the resistance of phases B and C?