View Single Post
  #6   Spotlight this post!  
Unread 02-20-2014, 08:05 PM
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Using atan2 on the cRIO

Quote:
Originally Posted by virtuald View Post
Yep. On a normal *nix machine, you have to add -lm to your link command to use the math library. I expect this is the same thing in Wind River.
That would not be true in this case. The .out file we load on the robots is a relocatable object that is dynamically loaded and linked into the VxWorks kernel space. So it works like adding a kernel module in Linux, not like an executable and library in user space. It would be true if we used real-time processes (RTPs) in VxWorks which are much like processes in Linux but we don't. I think support for them is not included in the kernel we are provided.

Are you sure it is atan2 that is not being resolved? It should be there. The OS image includes the GNU math libraries and we have used atan2 before in field-centric driver algorithms.

Good luck!
__________________
Fast, cheap or working - pick any two!
Reply With Quote