fix voltage on enc calib

This commit is contained in:
Oskar Weigl
2018-01-22 16:53:50 -08:00
parent 6271a008d8
commit f6b36345a2
+1 -1
View File
@@ -805,7 +805,7 @@ bool motor_calibration(Motor_t* motor) {
if (motor->rotor_mode == ROTOR_MODE_ENCODER ||
motor->rotor_mode == ROTOR_MODE_RUN_ENCODER_TEST_SENSORLESS) {
if (!calib_enc_offset(motor, motor->calibration_current * motor->phase_resistance))
if (!calib_enc_offset(motor, calibration_voltage))
return false;
}