SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
angle_correction.h
Go to the documentation of this file.
1#ifndef SENSESP_TRANSFORMS_ANGLE_CORRECTION_H_
2#define SENSESP_TRANSFORMS_ANGLE_CORRECTION_H_
3
5#include "transform.h"
6
7namespace sensesp {
8
22 public:
23 AngleCorrection(float offset, float min_angle = 0,
24 const String& config_path = "");
25 virtual void set(const float& input) override;
26 virtual bool to_json(JsonObject& root) override;
27 virtual bool from_json(const JsonObject& config) override;
28
29 protected:
30 float offset_;
32};
33
34const String ConfigSchema(const AngleCorrection& obj);
35
36} // namespace sensesp
37
38#endif
Add a value to an angle input (in radians). The output value is wrapped to a range between [0,...
AngleCorrection(float offset, float min_angle=0, const String &config_path="")
virtual void set(const float &input) override
virtual bool from_json(const JsonObject &config) override
virtual bool to_json(JsonObject &root) override
const String ConfigSchema(const SmartSwitchController &obj)