Bausager / Downscaled_Inverters

Downscaled three-phase half-bridge inverter
3 stars 2 forks source link

dqPLL sometimes finds the wrong angle #14

Open Bausager opened 7 months ago

Bausager commented 7 months ago

It sometimes find the angle spot on, but somtimes its 3.14rad/180degree from the correct angle. Resetting the microcontroller sometimes helps. Don't know why

Bausager commented 7 months ago

It seems like it hugs +-180 degrees when uploadning code from STM32cubeIDE, but when it's reset, it finds the right angle. Maybe it's something to do with the IDE.