Skip to content

Commit

Permalink
AP_Soaring: Use constexpr instead of define for constants
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Nov 22, 2024
1 parent dff0f6f commit 6b95f9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/AP_Soaring/AP_Soaring.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include "Variometer.h"
#include "SpeedToFly.h"

#define INITIAL_THERMAL_RADIUS 80.0
#define INITIAL_STRENGTH_COVARIANCE 0.0049
#define INITIAL_RADIUS_COVARIANCE 400.0
#define INITIAL_POSITION_COVARIANCE 400.0
static constexpr float INITIAL_THERMAL_RADIUS = 80.0;
static constexpr float INITIAL_STRENGTH_COVARIANCE = 0.0049;
static constexpr float INITIAL_RADIUS_COVARIANCE = 400.0;
static constexpr float INITIAL_POSITION_COVARIANCE = 400.0;


class SoaringController {
Expand Down

0 comments on commit 6b95f9d

Please sign in to comment.