@maxicor88 : the virtual motor idea is awesome, thank you.
Looking at the code there is one thing I do not understand regarding how id current is updated:
why is m_conf->foc_motor_flux_linkage / virtual_motor.ld substracted from id_int?
virtual_motor.id = virtual_motor.id_int - m_conf->foc_motor_flux_linkage / virtual_motor.ld;
The reason I am wondering is that in pure standstill (Valpha = Vbeta = we = 0) that extra term causes id current to be non zero, which bothers me.
Is there an electrical equation discretization trick I am missing?
@maxicor88 : the virtual motor idea is awesome, thank you.
Looking at the code there is one thing I do not understand regarding how id current is updated: why is
m_conf->foc_motor_flux_linkage / virtual_motor.ld
substracted fromid_int
?virtual_motor.id = virtual_motor.id_int - m_conf->foc_motor_flux_linkage / virtual_motor.ld;
The reason I am wondering is that in pure standstill (Valpha = Vbeta = we = 0) that extra term causes id current to be non zero, which bothers me.
Is there an electrical equation discretization trick I am missing?