|
Using atan2 on the cRIO
Whenever I try to use the atan2 function by including <cmath>, I can compile, but I get "no robot code" and netconsole gives the message "Warning: module 0x26eaa80 (FRC_UserProgram.out) holds reference to undefined symbol atan2f." If I use std::atan2 or atan2f, or even just try atan, the same error occurs. I've also tried using <math.h> instead of <cmath>. All compile, but none are defined. Does the cRIO not have trig functions in its c++ library, or am I doing something wrong?
|