View Single Post
  #8   Spotlight this post!  
Unread 02-22-2014, 09:15 AM
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
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
Reply With Quote