Skip to content

Commit

Permalink
[Rotor Estimator] Remove 3/2 multiplier for stator inductance
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil-kale committed Jan 12, 2024
1 parent 9e1191a commit fabd7c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion control_loop/bldc/rotor_estimator/rotor_estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ app_hal_status_E SensorlessRotorFluxObserver::update(const EstimatorInputs& inpu

// Update the phase resistance and inductance values to use the equivalent Alpha-Beta parameters
const float stator_resistance = inputs.phase_resistance * 3.0f / 2.0f;
const float stator_inductance = inputs.phase_inductance * 3.0f / 2.0f;
const float stator_inductance =
inputs.phase_inductance; // We are assuming phase inductance = Ld and Ld = Lq. This might be wrong
// (https://github.com/sahil-kale/basilisk-actuator-control-lib/issues/81)

// Clarke transform the current
math::alpha_beta_t i_ab = math::clarke_transform(inputs.phase_current.u, inputs.phase_current.v, inputs.phase_current.w);
Expand Down

0 comments on commit fabd7c7

Please sign in to comment.