We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba443b commit 6297d9eCopy full SHA for 6297d9e
common_libraries/low_pass_fir_filter/low_pass_fir_filter.cpp
@@ -1,7 +1,6 @@
1
#include "low_pass_fir_filter.hpp"
2
#include <stdexcept>
3
-#include <string>
4
-#include <iostream>
+#include <cstdio>
5
6
LowPassFIRFilter::LowPassFIRFilter() : LowPassFIRFilter(1) {}
7
@@ -10,8 +9,7 @@ LowPassFIRFilter::LowPassFIRFilter(unsigned int order)
10
9
coefficient(1.0f / (order + 1)), output(0) {
11
// Valid input check
12
if (order < 1 || order > MAX_LP_FIR_ORDER) {
13
- throw std::invalid_argument("order must be at least 1 and less than " +
14
- std::to_string(MAX_LP_FIR_ORDER));
+ throw std::invalid_argument("order must be at least 1 and less than the max order");
15
}
16
17
0 commit comments