You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Servo API removed: Built-in position and velocity control are no longer part of the library. esp_foc_set_target_position and esp_foc_set_target_speed (and related servo APIs) have been removed.
Motor control is now fully callback-driven: The application must implement the regulation loop by setting Id/Iq references and Ud/Uq feedforward in the esp_foc_motor_regulation_callback_t. Axis state (e.g. rotor_position, current_speed, currents) is read from the axis struct for use in custom velocity/position or torque logic.
Sine PWM modulation removed: Space vector PWM (SVPWM) is now the default and only modulation method.
Examples layout changed: The old examples from the 1.5.x API were removed for simplification and due to the breaking API changes in 2.0. Example projects are now organized under examples/axis_sensored, examples/axis_sensorless, and examples/test_drivers (inverter, voltage path, current sense). Use axis_sensored as the main reference for building and flashing.
Features
Callback-based regulation API: user-defined callback runs in the outer loop and sets target_i_d, target_i_q, target_u_d, target_u_q.
Current-mode FOC sensored: Id/Iq closed loop with rotor sensor (e.g. encoder, AS5600) and ADC shunt current sensing.
Current-mode FOC sensorless (experimental): Id/Iq closed loop with observer-based rotor estimation; open-loop startup with 1st-order current regulator and output clamp.
Observer: Kalman filter-based angle estimator for sensorless mode.