From 3806536c0787d2227783345f107f897552c442c9 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sun, 12 Apr 2020 17:45:19 +0200 Subject: [PATCH] Give some background for the MPP_TO_IDLE theshold --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 583140d..18f7c6b 100644 --- a/src/main.c +++ b/src/main.c @@ -591,7 +591,10 @@ int main(void) fxp_t VOLTAGE_THR_CV_TO_MPP = fxp_sub(CONST_VOLTAGE, fxp_from_float(0.300f)); fxp_t VOLTAGE_THR_FLOAT_TO_MPP = fxp_sub(CONST_FLOAT_VOLTAGE, fxp_from_float(0.300f)); - fxp_t POWER_THR_MPP_TO_IDLE = fxp_from_float(0.500f); // W + // below this power in makes no sense to leave the converter on because the + // power used by it is more than what we can generate. Better wait until the + // input voltage rises again. + fxp_t POWER_THR_MPP_TO_IDLE = fxp_from_float(0.300f); // W // input voltage must exceed this value to leave idle mode fxp_t VOLTAGE_THR_IDLE_TO_MPP = fxp_from_float(19.0f); // V