Problem with DynamicMathLib
electric550
Posts: 122
Has anybody experiance problems withe the FCos(a), FSin(a), FTan(a) commands in the DynamicMathLib? The other functions are working fine for me but the ones mentioned are getting stuck in a loop when the function is called, so the program just stops. Any suggestions.
The above functions are locking up when I run them. I was wondering if anyone had a similar problem or if someone knows how to fix this? Thanks
Also the degree version of the commands return from the loop but they are returning incorrect values when I run them.
Post Edited (electric550) : 8/3/2009 2:49:19 AM GMT
con ''These are from Float32 and require a cog no matter what PUB FSin(a) restart1 'return sendCmd(SinCmd + @a) command := SinCmd + @a repeat while command stop1 return cmdReturn PUB FCos(a) 'return sendCmd(CosCmd + @a) command := CosCmd + @a repeat while command return cmdReturn PUB FTan(a) restart 'return sendCmd(TanCmd + @a) command := TanCmd + @a repeat while command stop1 return cmdReturn
The above functions are locking up when I run them. I was wondering if anyone had a similar problem or if someone knows how to fix this? Thanks
Also the degree version of the commands return from the loop but they are returning incorrect values when I run them.
Post Edited (electric550) : 8/3/2009 2:49:19 AM GMT
Comments
and it works now.