调用sin asin 等函数会影响到别的寄存器的值
详情看下图,下图是单步调试,temp变量和其他变量没任何关系,只是用来存放值的。
但是调试发现, PID_ROL.P PID_PIT.P等其他值都发生了变化。
如果我把temp=sin(0.5)注释掉,就没有任何问题。求解决方法
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
调用sin asin 等函数会影响到别的寄存器的值
详情看下图,下图是单步调试,temp变量和其他变量没任何关系,只是用来存放值的。
但是调试发现, PID_ROL.P PID_PIT.P等其他值都发生了变化。
如果我把temp=sin(0.5)注释掉,就没有任何问题。求解决方法