aboutsummaryrefslogtreecommitdiff
path: root/hw/hank/emisar-d3aa/anduril.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2024-03-29 08:21:07 -0600
committerSelene ToyKeeper2024-03-29 08:21:07 -0600
commit3cafb86c00a95a70e58144230f641c2c94208e7b (patch)
treef0da65c64f98b253c2a611f7c1d672ff60765568 /hw/hank/emisar-d3aa/anduril.h
parentweak battery detection: use different thresholds for AA and Li-Ion (diff)
downloadanduril-3cafb86c00a95a70e58144230f641c2c94208e7b.tar.gz
anduril-3cafb86c00a95a70e58144230f641c2c94208e7b.tar.bz2
anduril-3cafb86c00a95a70e58144230f641c2c94208e7b.zip
d3aa weak battery test: blink 3x instead of 2x, and omit number readout
Diffstat (limited to 'hw/hank/emisar-d3aa/anduril.h')
-rw-r--r--hw/hank/emisar-d3aa/anduril.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/hank/emisar-d3aa/anduril.h b/hw/hank/emisar-d3aa/anduril.h
index a80557d..e4e4458 100644
--- a/hw/hank/emisar-d3aa/anduril.h
+++ b/hw/hank/emisar-d3aa/anduril.h
@@ -44,6 +44,10 @@
#define HALFSPEED_LEVEL 41
#define QUARTERSPEED_LEVEL 40 // seems to run fine at 10kHz/4, try reducing more?
+// should be about 300 mA or ~100 lm,
+// to avoid overloading firmware flashing adapters
+#define WEAK_BATTERY_TEST_MAX_LEVEL 75
+
#define RAMP_SMOOTH_FLOOR 1
#define RAMP_SMOOTH_CEIL 130 // 50% power
// 10 30 [50] 70 90 110 130