Arduino-FOC icon indicating copy to clipboard operation
Arduino-FOC copied to clipboard

[BUG] Fix KV initialization

Open runger1101001 opened this issue 2 years ago • 1 comments

like this image can someone check my math make sure im not crazy lol

Change the sqrt(2) to sqrt(3) and it should be ok. But maybe put the sqrt(3) somewhere else. It doesn't make sense to have a strange kv with the same name.

Elwin — Yesterday at 10:39 PM Because the id iq vd and vq are like phase-zero quantities. The kv is in phase-phase.

Elwin — Yesterday at 10:42 PM I think you should change it here https://github.com/simplefoc/Arduino-FOC/blob/f9e9a2d29e912957bd75302d4f9a83a1cdff37a5/src/BLDCMotor.cpp#L399

Elwin — Yesterday at 10:47 PM Is the code ment for motors with a trapezoidal back emf? Because if I recall correctly than it could be wrong what I just said. I only work with sinusoidal bemf motors.

runger1101001 avatar Nov 25 '23 18:11 runger1101001

PR merged, so this will be closed with the 2.3.3 release

runger1101001 avatar Dec 02 '23 16:12 runger1101001