aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-07-01 19:48:49 -0600
committerSelene ToyKeeper2018-07-01 19:48:49 -0600
commitebe2cf08b60c5fbae19b1af3098cde3d134e4803 (patch)
treed466f3599591f9d6883e4dbbc63aef84e010266b
parentMade it easier to define thermal parameters per driver type. (diff)
downloadanduril-ebe2cf08b60c5fbae19b1af3098cde3d134e4803.tar.gz
anduril-ebe2cf08b60c5fbae19b1af3098cde3d134e4803.tar.bz2
anduril-ebe2cf08b60c5fbae19b1af3098cde3d134e4803.zip
Added hardware profiles and build targets for Emisar D1 and D1S.
(same as D4, except with lower power-to-mass ratio)
-rw-r--r--hwdef-Emisar_D1.h4
-rw-r--r--hwdef-Emisar_D1S.h4
-rwxr-xr-xspaghetti-monster/anduril/build-all.sh2
-rw-r--r--spaghetti-monster/anduril/cfg-emisar-d1.h6
-rw-r--r--spaghetti-monster/anduril/cfg-emisar-d1s.h6
-rw-r--r--tk-attiny.h6
6 files changed, 28 insertions, 0 deletions
diff --git a/hwdef-Emisar_D1.h b/hwdef-Emisar_D1.h
new file mode 100644
index 0000000..6df8705
--- /dev/null
+++ b/hwdef-Emisar_D1.h
@@ -0,0 +1,4 @@
+/* Emisar D1 driver layout
+ */
+// D1 driver is exactly the same as a D4
+#include "hwdef-Emisar_D4.h"
diff --git a/hwdef-Emisar_D1S.h b/hwdef-Emisar_D1S.h
new file mode 100644
index 0000000..31792c7
--- /dev/null
+++ b/hwdef-Emisar_D1S.h
@@ -0,0 +1,4 @@
+/* Emisar D1S driver layout
+ */
+// D1S driver is exactly the same as a D4
+#include "hwdef-Emisar_D4.h"
diff --git a/spaghetti-monster/anduril/build-all.sh b/spaghetti-monster/anduril/build-all.sh
index 4100805..07f33b1 100755
--- a/spaghetti-monster/anduril/build-all.sh
+++ b/spaghetti-monster/anduril/build-all.sh
@@ -3,6 +3,8 @@
for TARGET in \
BLF_GT \
BLF_Q8 \
+ EMISAR_D1 \
+ EMISAR_D1S \
EMISAR_D4 \
FW3A \
; do
diff --git a/spaghetti-monster/anduril/cfg-emisar-d1.h b/spaghetti-monster/anduril/cfg-emisar-d1.h
new file mode 100644
index 0000000..e9064ac
--- /dev/null
+++ b/spaghetti-monster/anduril/cfg-emisar-d1.h
@@ -0,0 +1,6 @@
+// Emisar D1 config options for Anduril
+#include "cfg-emisar-d4.h"
+
+// stop panicking at ~75% power or ~1000 lm (D1 has a decent power-to-thermal-mass ratio)
+#undef THERM_FASTER_LEVEL
+#define THERM_FASTER_LEVEL (RAMP_SIZE*9/10) // throttle back faster when high
diff --git a/spaghetti-monster/anduril/cfg-emisar-d1s.h b/spaghetti-monster/anduril/cfg-emisar-d1s.h
new file mode 100644
index 0000000..7e73fa7
--- /dev/null
+++ b/spaghetti-monster/anduril/cfg-emisar-d1s.h
@@ -0,0 +1,6 @@
+// Emisar D1S config options for Anduril
+#include "cfg-emisar-d4.h"
+
+// stop panicking at ~90% power or ~1200 lm (D1S has a good power-to-thermal-mass ratio)
+#undef THERM_FASTER_LEVEL
+#define THERM_FASTER_LEVEL 144 // throttle back faster when high
diff --git a/tk-attiny.h b/tk-attiny.h
index b3edb6d..a36fef0 100644
--- a/tk-attiny.h
+++ b/tk-attiny.h
@@ -84,6 +84,12 @@
#elif defined(FSM_EMISAR_D4_DRIVER)
#include "hwdef-Emisar_D4.h"
+#elif defined(FSM_EMISAR_D1_DRIVER)
+#include "hwdef-Emisar_D1.h"
+
+#elif defined(FSM_EMISAR_D1S_DRIVER)
+#include "hwdef-Emisar_D1S.h"
+
#elif defined(FSM_FW3A_DRIVER)
#include "hwdef-FW3A.h"