Skip to content

Conversation

gennartan
Copy link

Hello,
I had issues building the steering_functions repositroy in my project. In order to be able to build it I had to apply the modifications that I add in this pull request. I think that it improves the general quality and reliability of this code so I am opening a pull request to share it with you.

This mainly change the definition of PI and all PI related functions in the steering_functions repository to ensure that there is no confusion possible with a macro / symbol from another library and use a constexpr instead of a DEFINE to ensure that the variable is typed.

I am open to modification if you have another idea of performing this update.

Otherwise it might interfer with another symbol defined in another
library. This was the case for the symbol PI and was causing the build
to fail with the following error: `error: expected unqualified-id before
numeric constant`

In order to ensure that there is no confusion possible, also prefix all
the PI constants by STEERING.
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

Successfully merging this pull request may close these issues.

1 participant