aboutsummaryrefslogtreecommitdiff
path: root/hw/hank/emisar-d1s/anduril.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-03 06:39:50 -0600
committerSelene ToyKeeper2023-11-03 06:39:50 -0600
commit8d022eba3b741bd2a1253df09c01d75e340b492a (patch)
tree84eb8c728de7fcdf1843fd8b6cfbf89d9233d176 /hw/hank/emisar-d1s/anduril.h
parentgot things to compile again, renamed #includes (diff)
downloadanduril-8d022eba3b741bd2a1253df09c01d75e340b492a.tar.gz
anduril-8d022eba3b741bd2a1253df09c01d75e340b492a.tar.bz2
anduril-8d022eba3b741bd2a1253df09c01d75e340b492a.zip
renamed cfg.h -> anduril.h so each UI can have its own cfg (part 1)
(still need to update file contents afterward, but doing it in a separate commit so git can detect renames easier)
Diffstat (limited to 'hw/hank/emisar-d1s/anduril.h')
-rw-r--r--hw/hank/emisar-d1s/anduril.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/hw/hank/emisar-d1s/anduril.h b/hw/hank/emisar-d1s/anduril.h
new file mode 100644
index 0000000..9eddc05
--- /dev/null
+++ b/hw/hank/emisar-d1s/anduril.h
@@ -0,0 +1,23 @@
+// Emisar D1S config options for Anduril
+// Copyright (C) 2018-2023 Selene ToyKeeper
+// SPDX-License-Identifier: GPL-3.0-or-later
+#pragma once
+
+// same as Emisar D4, mostly
+#include "hank/emisar-d4/hwdef.h"
+#include "hank/emisar-d4/cfg.h"
+#undef MODEL_NUMBER
+#define MODEL_NUMBER "0122"
+
+// safe limit ~50% power
+#undef SIMPLE_UI_CEIL
+#define SIMPLE_UI_CEIL 120
+
+// stop panicking at ~90% power or ~1200 lm (D1S has a good power-to-thermal-mass ratio)
+#ifdef THERM_FASTER_LEVEL
+#undef THERM_FASTER_LEVEL
+#endif
+#define THERM_FASTER_LEVEL 144 // throttle back faster when high
+
+// too big, turn off extra features
+//#undef USE_TACTICAL_MODE