SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
change_filter.h
Go to the documentation of this file.
1#ifndef change_filter_H
2#define change_filter_H
3
4#include "transform.h"
5
6namespace sensesp {
7
34 public:
35 ChangeFilter(float min_delta = 0.0, float max_delta = 9999.0,
36 int max_skips = 99, String config_path = "");
37
38 virtual void set_input(float new_value, uint8_t input_channel = 0) override;
39 virtual void get_configuration(JsonObject& doc) override;
40 virtual bool set_configuration(const JsonObject& config) override;
41 virtual String get_config_schema() override;
42
43 protected:
47 int skips_;
48};
49
50} // namespace sensesp
51
52#endif
A float passthrough transform that will only pass that value through if it is "sufficiently different...
virtual void set_input(float new_value, uint8_t input_channel=0) override
virtual void get_configuration(JsonObject &doc) override
virtual String get_config_schema() override
virtual bool set_configuration(const JsonObject &config) override
Construct a new transform based on a single function.