Skip to content

Commit

Permalink
increased filter flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza787b committed Aug 28, 2024
1 parent 61311c7 commit c39f344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ std::string ConfigManager::configName;
* to changes but may be less effective at eliminating noise. The optimal window
* size should be chosen based on the specific application and expected noise characteristics.
*/
int ConfigManager::MEDIAN_FILTER_WINDOW_SIZE = 5;
int ConfigManager::MEDIAN_FILTER_WINDOW_SIZE = 4;

/**
* @brief Flag for enabling/disabling velocity filtering.
Expand Down
2 changes: 1 addition & 1 deletion src/MAVLinkManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ constexpr float GRAVITY = 9.81;
// Define and initialize the random number generators and distributions
std::random_device MAVLinkManager::rd;
std::mt19937 MAVLinkManager::gen(MAVLinkManager::rd());
std::normal_distribution<float> MAVLinkManager::noiseDistribution(0.0f, 0.00006f);
std::normal_distribution<float> MAVLinkManager::noiseDistribution(0.0f, 0.00007f);
std::normal_distribution<float> MAVLinkManager::noiseDistribution_mag(0.0f, 0.00001f);


Expand Down

0 comments on commit c39f344

Please sign in to comment.