feat: the trigger can ignore a noise band and reject HF before comparing
This commit is contained in:
1 parent
d5a9b3c5d5
commit
d34bff3f03
9 files changed
+99
-16
No files matched your search
+3
-2
@@ -14,7 +14,8 @@ double TriggerConfig::post_span_s(double buffer_span_s) const {
|
||||
}
|
||||
|
||||
void TriggerEngine::configure(const TriggerConfig& cfg, const std::string& channel_name,
|
||||
double post_seconds, double pre_seconds, double oldest_s) {
|
||||
double post_seconds, double pre_seconds, double oldest_s,
|
||||
double dt) {
|
||||
const bool channel_changed = channel_name != channel_name_;
|
||||
if (channel_changed) channel_name_ = channel_name;
|
||||
cfg_ = cfg;
|
||||
@@ -22,7 +23,7 @@ void TriggerEngine::configure(const TriggerConfig& cfg, const std::string& chann
|
||||
pre_seconds_ = pre_seconds > 0.0 ? pre_seconds : 0.0;
|
||||
oldest_s_ = oldest_s;
|
||||
// A no-op unless the condition actually changed: this runs on every packet.
|
||||
detector_.configure(cfg_.condition);
|
||||
detector_.configure(cfg_.condition, dt);
|
||||
if (channel_changed) {
|
||||
detector_.reset();
|
||||
pending_ = false;
|
||||
|
||||
Reference in new issue
Block a user