Search the Community
Showing results for tags 'atan2'.
Found 1 result
Hello, I need to use fxATan2 block to decode the angle value. I need an efficient way to do this so I am using fixed-point blocks. The issue is that I am not able to extract the angle value using fixed point arc tan block. I was not a problem decoding angle value from normal atan block. I have attached a simulation file. Please check and advise me what changes are needed to be done. Note: I have tried converting the sin/cos to per unit as recommended in help. With both fx1.16 & fx1.32 based data types but nothing worked. If there is another efficient way to do this then please recommend as atan is itself quite inefficient. fxATan2_test.vsm