Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ST source needs abs() modification to compile for x86 #1

Open
ryanj1234 opened this issue Feb 21, 2019 · 0 comments
Open

ST source needs abs() modification to compile for x86 #1

ryanj1234 opened this issue Feb 21, 2019 · 0 comments

Comments

@ryanj1234
Copy link
Contributor

When compiling for x86, compiler errors out since call to function abs() is ambiguous. Current workaround is to cast args in abs() as double for the x86 build. The compiler for the x86 build uses include -D__WINDOWS__ which is used with #ifdef to create a separate call to abs() for x86 only. For native roboRIO builds abs() is left untouched.

xTalkCorrection = abs((double)diff1_mcps/diff2_mcps);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant