JXCT Soil Sensor 7-in-1 v3.4.9 (June 2025)
Professional IoT soil monitoring system with ESP32, Modbus RTU, MQTT, and advanced compensation algorithms
Загрузка...
Поиск...
Не найдено
calibration_manager.h
См. документацию.
1#pragma once
2
3#include <Arduino.h>
4#include <FS.h>
5#include <LittleFS.h>
7
8// Структура одной записи калибровочной таблицы (сырое значение -> скорректированное)
10{
11 float raw;
12 float corrected;
13};
14
15namespace CalibrationManager
16{
17 // Инициализация файловой системы (LittleFS) и каталога /calibration
18 bool init();
19
20 // Сохранение CSV-файла, полученного через upload, в каталог /calibration/<profile>.csv
21 bool saveCsv(SoilProfile profile, Stream& fileStream);
22
23 // Загрузка таблицы калибровки в оперативную память
24 bool loadTable(SoilProfile profile, CalibrationEntry* outBuffer, size_t maxEntries, size_t& outCount);
25
26 // Проверка существования таблицы
27 bool hasTable(SoilProfile profile);
28
29 // Удаление таблицы
30 bool deleteTable(SoilProfile profile);
31
32 // Преобразование профиля в имя файла
33 const char* profileToFilename(SoilProfile profile);
34}
bool deleteTable(SoilProfile profile)
Определения calibration_manager.cpp:100
bool loadTable(SoilProfile profile, CalibrationEntry *outBuffer, size_t maxEntries, size_t &outCount)
Определения calibration_manager.cpp:58
bool hasTable(SoilProfile profile)
Определения calibration_manager.cpp:94
const char * profileToFilename(SoilProfile)
Определения calibration_manager.cpp:9
bool saveCsv(SoilProfile profile, Stream &fileStream)
Определения calibration_manager.cpp:35
bool init()
Определения calibration_manager.cpp:14
Алгоритмы коррекции показаний датчиков
SoilProfile
Определения sensor_compensation.h:14
Определения calibration_manager.h:10
float raw
Определения calibration_manager.h:11
float corrected
Определения calibration_manager.h:12