From 616a0d329d607c4afa6e14c195a14dfeb9ba57ae Mon Sep 17 00:00:00 2001 From: Phil Tokumaru Date: Tue, 9 Jul 2024 17:02:51 -0700 Subject: [PATCH] Removed some more stuff that was not neede when the outlier filters were removed. --- include/sensors.h | 7 ------- src/sensors.cpp | 9 --------- 2 files changed, 16 deletions(-) diff --git a/include/sensors.h b/include/sensors.h index a6be8da4..1b083855 100644 --- a/include/sensors.h +++ b/include/sensors.h @@ -204,17 +204,10 @@ class Sensors : public ParamListenerInterface got_flags got; private: - static const float BARO_MAX_CHANGE_RATE; - static const float BARO_SAMPLE_RATE; - static const float DIFF_MAX_CHANGE_RATE; - static const float DIFF_SAMPLE_RATE; - static const float SONAR_MAX_CHANGE_RATE; - static const float SONAR_SAMPLE_RATE; static const int SENSOR_CAL_DELAY_CYCLES; static const int SENSOR_CAL_CYCLES; static const float BARO_MAX_CALIBRATION_VARIANCE; static const float DIFF_PRESSURE_MAX_CALIBRATION_VARIANCE; - static constexpr uint32_t BATTERY_MONITOR_UPDATE_PERIOD_MS = 10; enum : uint8_t { diff --git a/src/sensors.cpp b/src/sensors.cpp index f1cfc52e..d91c7748 100644 --- a/src/sensors.cpp +++ b/src/sensors.cpp @@ -44,15 +44,6 @@ namespace rosflight_firmware { -// TODO: These values don't change actual rates, is there a way to just reference actual rates -// as defined in hardware board implementation? -const float Sensors::BARO_MAX_CHANGE_RATE = 200.0f; // approx 200 m/s -const float Sensors::BARO_SAMPLE_RATE = 50.0f; -const float Sensors::DIFF_MAX_CHANGE_RATE = 225.0f; // approx 15 m/s^2 -const float Sensors::DIFF_SAMPLE_RATE = 100.0f; -const float Sensors::SONAR_MAX_CHANGE_RATE = 100.0f; // 100 m/s -const float Sensors::SONAR_SAMPLE_RATE = 50.0f; - const int Sensors::SENSOR_CAL_DELAY_CYCLES = 128; const int Sensors::SENSOR_CAL_CYCLES = 127;