|
Re: Using atan2 on the cRIO
Hmm... We used the atan2 function in the 2010 bot with no problems. A quick check on the bot shows both an atan and an atan2 in the symbol table. From the netconsole prompt:
-> lkup "atan"
atan 0x000b5218 text
atan2 0x000b542c text
The actual addresses are not important. But the "text" shows that there are funtions out there with the names shown.
Make sure that you include math.h and reference the function as "atan2" not "atan2f". WRS has the double precision version of the function on the bot.
HTH,
Mike
|