SIM_Aircraft: change define in favor of static constexpr

This commit is contained in:
Pierre Kancir 2017-03-03 11:24:15 +01:00 committed by Andrew Tridgell
parent c25c92bfb6
commit 579f655e76

View File

@ -250,11 +250,11 @@ private:
LowPassFilterFloat servo_filter[4];
/* set this always to the sampling in degrees for the table below */
static const float SAMPLING_RES = 10.0f;
static const float SAMPLING_MIN_LAT = -60.0f;
static const float SAMPLING_MAX_LAT = 60.0f;
static const float SAMPLING_MIN_LON = -180.0f;
static const float SAMPLING_MAX_LON = 180.0f;
static constexpr float SAMPLING_RES = 10.0f;
static constexpr float SAMPLING_MIN_LAT = -60.0f;
static constexpr float SAMPLING_MAX_LAT = 60.0f;
static constexpr float SAMPLING_MIN_LON = -180.0f;
static constexpr float SAMPLING_MAX_LON = 180.0f;
/* table data containing magnetic declination angle in degrees */
const float declination_table[13][37] =