Hi,
I want use the PWMSVM01 APP at DAVE Ver.3.
In this APP provided the function void PWMSVM01_SVM(const PWMSVM01_HandleType* HandlePtr, uint16_t Amplitude, uint16_t Angle);
About the argument(Amplitude) I have the following question:
- What is the unit of this argument?
I defined a value as .kMaxAmplitude = (uint16_t) 5999 in initialization.
With this setting, PWM can generate a sin wave.
I want to adjust this sin wave the P-P ofto 0.8 times.
I change the argumet Amplitude to 5399(5999 - 2999 * (1 - 0.8)).
Is this method correct?
Please referens to the attached image for details.
Thank you for your support.
Best regards
Xingwei