5#define M_PI 3.14159265358979323846
15 float x = input + offset_;
22 this->
emit(x + min_angle_);
26 root[
"offset"] = offset_;
27 root[
"min_angle"] = min_angle_;
33 "offset": { "title": "Constant offset", "description": "Value to be added, in radians", "type": "number" },
34 "min_angle": { "title": "Minimum angle value", "description": "If you have output between -pi and pi, use -3.14159265, otherwise use 0.", "type": "number" }
47 offset_ =
config[
"offset"];
48 min_angle_ =
config[
"min_angle"];
virtual void get_configuration(JsonObject &doc) override
virtual String get_config_schema() override
virtual bool set_configuration(const JsonObject &config) override
virtual void set_input(float input, uint8_t inputChannel=0) override
AngleCorrection(float offset, float min_angle=0, String config_path="")
virtual void load_configuration()
const uint8_t PAGE_css_bootstrap[] PROGMEM