Skip to content

Commit

Permalink
Removed some more stuff that was not neede when the outlier filters w…
Browse files Browse the repository at this point in the history
…ere removed.
  • Loading branch information
avtoku committed Jul 10, 2024
1 parent 9216738 commit 616a0d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
7 changes: 0 additions & 7 deletions include/sensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
9 changes: 0 additions & 9 deletions src/sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 616a0d3

Please sign in to comment.