From ebe2cf08b60c5fbae19b1af3098cde3d134e4803 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 1 Jul 2018 19:48:49 -0600 Subject: Added hardware profiles and build targets for Emisar D1 and D1S. (same as D4, except with lower power-to-mass ratio) --- hwdef-Emisar_D1.h | 4 ++++ hwdef-Emisar_D1S.h | 4 ++++ spaghetti-monster/anduril/build-all.sh | 2 ++ spaghetti-monster/anduril/cfg-emisar-d1.h | 6 ++++++ spaghetti-monster/anduril/cfg-emisar-d1s.h | 6 ++++++ tk-attiny.h | 6 ++++++ 6 files changed, 28 insertions(+) create mode 100644 hwdef-Emisar_D1.h create mode 100644 hwdef-Emisar_D1S.h create mode 100644 spaghetti-monster/anduril/cfg-emisar-d1.h create mode 100644 spaghetti-monster/anduril/cfg-emisar-d1s.h 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" -- cgit v1.2.3