added periodic recreation of the LHM objects, to prevent memory leaks
This commit is contained in:
@@ -40,16 +40,17 @@ const uint8_t pwmResolution = 10; // 10-bit resolution (0–1023)
|
||||
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
|
||||
// -------------------------------
|
||||
|
||||
Reference in New Issue
Block a user