added periodic recreation of the LHM objects, to prevent memory leaks

This commit is contained in:
2026-01-19 02:55:48 +01:00
parent f21269daa5
commit 9fa0e4466c
2 changed files with 63 additions and 15 deletions

View File

@@ -40,16 +40,17 @@ const uint8_t pwmResolution = 10; // 10-bit resolution (01023)
float logicalPoints[5] = {0, 25, 50, 75, 100};
float calibratedPoints[NUM_CHANNELS][5] = {
{0, 25, 50, 75, 99},
{0, 24, 49, 74, 98},
{0, 26, 51, 76, 99},
{0, 25, 50, 75, 97},
{0, 25, 50, 75, 99},
{0, 24, 50, 74, 98},
{0, 25, 49, 75, 97},
{0, 26, 50, 76, 99}
{0.0f, 25.0f, 50.0f, 75.0f, 99.0f},
{0.0f, 24.0f, 49.0f, 74.0f, 98.0f},
{0.0f, 26.0f, 51.0f, 76.0f, 99.0f},
{0.0f, 25.0f, 50.0f, 75.0f, 97.0f},
{0.0f, 25.0f, 50.0f, 75.0f, 99.0f},
{0.0f, 24.0f, 50.0f, 74.0f, 98.0f},
{0.0f, 25.0f, 49.0f, 75.0f, 97.0f},
{0.0f, 26.0f, 50.0f, 76.0f, 99.0f}
};
// -------------------------------
// Duty tracking + Slew system
// -------------------------------