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

AP_Soaring: Use constexpr instead of define for constants #28709

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

Ryanf55
Copy link
Collaborator

@Ryanf55 Ryanf55 commented Nov 22, 2024

Purpose

Switch to constexpr floats instead of defines which provide better compile time safety and editor support.

Editor Support (VSCode)

Before

image

After

You can see it's a float now.

image

@peterbarker peterbarker merged commit fe8e0d0 into ArduPilot:master Nov 24, 2024
99 checks passed
@Ryanf55 Ryanf55 deleted the soaring-constexpr branch November 24, 2024 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants