kopia lustrzana https://github.com/OpenRTX/OpenRTX
Adjust voltage thresholds
rodzic
431d445c77
commit
98cd741c88
|
@ -22,19 +22,19 @@
|
|||
#include <math.h>
|
||||
|
||||
/* This array acts as a lookup table for converting Li-Po voltage into
|
||||
* charge percentage, elements range from 0% to 100% (included) with 5% steps.
|
||||
* charge percentage, elements range from 5% to 95% (included) with 5% steps.
|
||||
* Data is taken from (https://blog.ampow.com/lipo-voltage-chart/).
|
||||
*/
|
||||
#define V_LUT_STEPS 21
|
||||
#if defined BAT_LIPO_1S
|
||||
float bat_v_min = 3.61f;
|
||||
float bat_v_max = 4.20f;
|
||||
float bat_v_max = 4.15f;
|
||||
#elif defined BAT_LIPO_2S
|
||||
float bat_v_min = 7.22f;
|
||||
float bat_v_max = 8.40f;
|
||||
float bat_v_max = 8.30f;
|
||||
#elif defined BAT_LIPO_3S
|
||||
float bat_v_min = 10.83;
|
||||
float bat_v_max = 12.60;
|
||||
float bat_v_max = 12.45;
|
||||
#else
|
||||
#error Please define a battery type into platform/targets/.../hwconfig.h
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue