Skip to content

Commit

Permalink
best barometer rellesic filter so far
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza787b committed Aug 28, 2024
1 parent c39f344 commit 42d7187
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 @@ -94,7 +94,7 @@ bool ConfigManager::filter_barometer_enabled = true;
* (less smoothing), and a lower value provides more smoothing (more reliance on previous data points).
* Tuning this parameter helps balance the responsiveness of the pressure data with the need for noise reduction.
*/
float ConfigManager::barometer_filter_alpha = 0.95f;
float ConfigManager::barometer_filter_alpha = 0.65f;


// Stores configurations for actuators, indexed by their channel number.
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.00007f);
std::normal_distribution<float> MAVLinkManager::noiseDistribution(0.0f, 0.0001f);
std::normal_distribution<float> MAVLinkManager::noiseDistribution_mag(0.0f, 0.00001f);


Expand Down

0 comments on commit 42d7187

Please sign in to comment.