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

[ENHANCEMENT] Replace #define constants with const variables in run_dynamics_fast #10

Open
aweinert-MIT opened this issue Mar 11, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@aweinert-MIT
Copy link
Member

Relation

The MATLAB mex function, run_dynamics_fast is used by multiple repositories, including em-model-manned-bayes to simulate aircraft trajectories with a 6DOF physics model. There are various #define statements that define constants.

Description

Per the Google C++ Style Guide for preprocessor macros:

Instead of using a macro to store a constant, use a const variable.

Alternatives

Using const instead of #define is a good best practice and should be implemented.

Additional

While the contributing guidelines does not define a style guide for C++, we currently recommend the Google C++ Style Guide for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant