SignalK-Orientation 1.0.0
Orientation output in Signal K format for ESP32
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DeviationInterpolator Class Reference
Inheritance diagram for DeviationInterpolator:
Inheritance graph
[legend]
Collaboration diagram for DeviationInterpolator:
Collaboration graph
[legend]

Public Member Functions

 DeviationInterpolator (String config_path="")
 
 DeviationInterpolator (String config_path="")
 

Detailed Description

Producing Magnetic Headings from Compass Readings requires Deviation correction DeviationInterpolator allows one to enter a custom Deviation table. It can be hard-coded below, and updated using SensESP's web interface

Definition at line 87 of file example_main.cpp.

Constructor & Destructor Documentation

◆ DeviationInterpolator() [1/2]

DeviationInterpolator::DeviationInterpolator ( String  config_path = "")
inline

Populate a lookup table to translate compass values to magnetic heading. The values should be edited to suit your own actual Deviation table, either here by calling add_sample(), or using the SensESP web config page. Note that values entered via the web configuration will be overwritten by calls to add_sample() in this constructor anytime the ESP device reboots. So if you want the web-entered values to persist, then comment out the below initialization calls.

Values are in radians.

clear_samples(); add_sample(CurveInterpolator::Sample(compass reading, magnetic heading));

Definition at line 89 of file example_main.cpp.

◆ DeviationInterpolator() [2/2]

DeviationInterpolator::DeviationInterpolator ( String  config_path = "")
inline

Populate a lookup table to translate compass values to magnetic heading. The values should be edited to suit your own actual Deviation table, either here by calling add_sample(), or using the SensESP web config page. Note that values entered via the web configuration will be overwritten by calls to add_sample() in this constructor anytime the ESP device reboots. So if you want the web-entered values to persist, then comment out the below initialization calls.

Values are in radians.

clear_samples(); add_sample(CurveInterpolator::Sample(compass reading, magnetic heading));

Definition at line 89 of file example_main_all_sensors.cpp.


The documentation for this class was generated from the following files: