sensors/vehicle_angular_velocity: RPM notch don't fully disable if first harmonic frequency drops below minimum frequency

- keep higher frequency harmonics enabled per ESC
 - cleanup timestamp handling (timeouts, etc)
This commit is contained in:
Daniel Agar
2021-12-21 13:36:59 -05:00
parent b58922a5d7
commit ab547bb982
3 changed files with 85 additions and 77 deletions

View File

@@ -128,6 +128,8 @@ public:
_b2 = b[2];
}
bool initialized() const { return _initialized; }
void reset() { _initialized = false; }
void reset(const T &sample)
@@ -151,11 +153,6 @@ public:
_bandwidth = 0.f;
_sample_freq = 0.f;
_delay_element_1 = {};
_delay_element_2 = {};
_delay_element_output_1 = {};
_delay_element_output_2 = {};
_b0 = 1.f;
_b1 = 0.f;
_b2 = 0.f;