|
SignalK-Orientation 1.0.0
Orientation output in Signal K format for ESP32
|


Public Member Functions | |
| DeviationInterpolator (String config_path="") | |
| DeviationInterpolator (String config_path="") | |
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.
|
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.
|
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.