{
if (!motor_now->m_phase_override) {
foc_observer_update(motor_now->m_motor_state.v_alpha, motor_now->m_motor_state.v_beta,
motor_now->m_motor_state.i_alpha, motor_now->m_motor_state.i_beta,
dt, &(motor_now->m_observer_state), &motor_now->m_phase_now_observer, motor_now);
// Compensate from the phase lag caused by the switching frequency. This is important for motors
// that run on high ERPM compared to the switching frequency.
motor_now->m_phase_now_observer += motor_now->m_pll_speed * dt * (0.5 + conf_now->foc_observer_offset);
utils_norm_angle_rad((float*)&motor_now->m_phase_now_observer);
}
Why is the value of conf_now->foc_observer_offset = -1? I’m a beginner and don’t quite understand this. Thank you.