mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-23 09:03:40 +08:00
update max inductance check to 2500uH
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user