update max inductance check to 2500uH

This commit is contained in:
Oskar Weigl
2018-08-27 16:09:07 -07:00
parent 584b73920d
commit d54d4479ac
3 changed files with 2 additions and 2 deletions
+1
View File
@@ -8,6 +8,7 @@ Please add a note of your changes below this heading if you make a Pull Request.
### Changed
* We now enforce encoder offset calibration must happen after index is found (if using index)
* Renaming of the velocity estimate `pll_vel` -> `vel_estimate`.
* Hardcoded maximum inductance now 2500 uH.
### Fixed
* Once you got an axis error `ERROR_INVALID_STATE` you could never clear it
+1 -1
View File
@@ -241,7 +241,7 @@ bool Motor::measure_phase_inductance(float voltage_low, float voltage_high) {
config_.phase_inductance = L;
// TODO arbitrary values set for now
if (L < 1e-6f || L > 500e-6f)
if (L < 1e-6f || L > 2500e-6f)
return set_error(ERROR_PHASE_INDUCTANCE_OUT_OF_RANGE), false;
return true;
}
-1
View File
@@ -44,7 +44,6 @@ typedef struct {
float phase_resistance = 0.0f; // to be set by measure_phase_resistance
int32_t direction = 1; // 1 or -1
Motor_type_t motor_type = MOTOR_TYPE_HIGH_CURRENT;
// Read out max_allowed_current to see max supported value for current_lim.
// float current_lim = 70.0f; //[A]
float current_lim = 10.0f; //[A]