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>
6
#include "
sensor_compensation.h
"
7
8
// Структура одной записи калибровочной таблицы (сырое значение -> скорректированное)
9
struct
CalibrationEntry
10
{
11
float
raw
;
12
float
corrected
;
13
};
14
15
namespace
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
}
CalibrationManager
Определения
calibration_manager.cpp:6
CalibrationManager::deleteTable
bool deleteTable(SoilProfile profile)
Определения
calibration_manager.cpp:100
CalibrationManager::loadTable
bool loadTable(SoilProfile profile, CalibrationEntry *outBuffer, size_t maxEntries, size_t &outCount)
Определения
calibration_manager.cpp:58
CalibrationManager::hasTable
bool hasTable(SoilProfile profile)
Определения
calibration_manager.cpp:94
CalibrationManager::profileToFilename
const char * profileToFilename(SoilProfile)
Определения
calibration_manager.cpp:9
CalibrationManager::saveCsv
bool saveCsv(SoilProfile profile, Stream &fileStream)
Определения
calibration_manager.cpp:35
CalibrationManager::init
bool init()
Определения
calibration_manager.cpp:14
sensor_compensation.h
Алгоритмы коррекции показаний датчиков
SoilProfile
SoilProfile
Определения
sensor_compensation.h:14
CalibrationEntry
Определения
calibration_manager.h:10
CalibrationEntry::raw
float raw
Определения
calibration_manager.h:11
CalibrationEntry::corrected
float corrected
Определения
calibration_manager.h:12
include
calibration_manager.h
Документация по JXCT Soil Sensor 7-in-1. Последние изменения: Ср 25 Июн 2025 01:11:47. Создано системой
1.13.2