SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
angle_correction.h
Go to the documentation of this file.
1#ifndef _angle_correction_H_
2#define _angle_correction_H_
3
4#include "transform.h"
5
6namespace sensesp {
7
21 public:
22 AngleCorrection(float offset, float min_angle = 0, String config_path = "");
23 virtual void set_input(float input, uint8_t inputChannel = 0) override;
24 virtual void get_configuration(JsonObject& doc) override;
25 virtual bool set_configuration(const JsonObject& config) override;
26 virtual String get_config_schema() override;
27
28 private:
29 float offset_;
30 float min_angle_;
31};
32
33} // namespace sensesp
34
35#endif
Add a value to an angle input (in radians). The output value is wrapped to a range between [0,...
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
Construct a new transform based on a single function.