aboutsummaryrefslogtreecommitdiff
path: root/hw/hank/noctigon-dm11-boost/cfg.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-03renamed cfg.h -> anduril.h so each UI can have its own cfg (part 1)Selene ToyKeeper1-91/+0
(still need to update file contents afterward, but doing it in a separate commit so git can detect renames easier)
2023-11-02got things to compile again, renamed #includesSelene ToyKeeper1-2/+2
(also modified the build scripts to work with the new file structure)
2023-11-02reorganized project files (part 1)Selene ToyKeeper1-0/+0
(just moved files, didn't change the contents yet, and nothing will work without updating #includes and build scripts and stuff)
2023-10-29converted noctigon-dm11-boost to use PWM+DSM, and recalibrated timing for ↵Selene ToyKeeper1-2/+15
delays + smooth steps Anduril has gradually gotten faster over the years, apparently, so it needed longer delays to get accurate-ish timing for beacon and other modes. Adding DSM also changes the timing perceptibly, so I made it possible to calibrate the delay fudge factor on a per-build basis.
2023-07-22converted noctigon-dm11-* builds to multi-channelSelene ToyKeeper1-20/+17
(but I could only test dm11-boost on actual hardware) (also, it looks like dm11-sbt90 is almost identical to the base kr4 build, so I removed its hwdef)
2023-05-17converted Noctigon DM11-12V build, renamed to noctigon-dm11-boostSelene ToyKeeper1-24/+26
2023-04-25fixed bug behind K93_LOCKOUT_KLUDGE which could exit lockout in solid aux modeSelene ToyKeeper1-3/+0
(also reduced avg standby power by about 15 uA) (also fixed oscillating voltage mode colors, I think) The bug happened because sometimes sleep LVP would get triggered, because the ADC would read zero under some conditions. This in turn happened because the ADC needs the MCU to be at least partially awake in order to finish a measurement. So in standby mode, with the MCU only waking up very briefly to send a sleep tick and go back to sleep, the ADC required several cycles (like 375ms to 625ms) to finish a single measurement. This varied depending on how many instructions the MCU executed while it was awake. In the single-color mode, so few instructions were being executed that the ADC seemed to time out and abort its measurement, returning a zero. Then a low voltage warning was sent, which knocked the light back into "Off" mode. Adding no-op instructions inside the single-color clause was sufficient to prevent the ADC from timing out, because it kept the MCU awake just barely long enough. But it was a kludge, and it still took like half a second to finish a measurement, and the measurements were noisy. It also used more power, because it required keeping the ADC powered on far too long. This fix puts the MCU into "ADC Noise Reduction" mode instead, when a voltage measurement is needed during sleep. It reduces noise to make measurements more stable... but more importantly, it lets the measurement finish in like 0.5ms instead of 500ms. So it uses less power and isn't dependent on the number of calculations the MCU does during each "sleep tick". As a bonus, this can also measure voltage much more often, while still using less total energy than before. It was once every 8 seconds, and now it's once per second. Avg power use in aux low mode, on a D4Sv2: (avg of 30k samples each) - before: 101 uA - after: 86 uA
2023-04-17switched the rest of FSM + Anduril to use SPDX license headersSelene ToyKeeper1-0/+4
instead of full GPL headers (or all too often, nothing at all) There are a few "FIXME" entries where I'm not sure about the correct copyright.
2022-07-29allow supporting single-color and RGB side button in the same buildSelene ToyKeeper1-0/+4
(new D1v2 comes in both flavors, and it's easier for everyone if they can use the same firmware) Also, removed lockout-abort bug on D1v2 (and DM11, I think). Hopefully some day I'll have time to update to a newer compiler, and then hopefully it won't have this issue any more... but for now, it still uses a kludge to trick the compiler into working.
2021-11-12a bit more fine-tuning for DM11Selene ToyKeeper1-2/+2
2021-11-12fine-tuned DM11-12V build a bit based on actual measurementsSelene ToyKeeper1-7/+11
2021-10-12renamed MD11 -> DM11 because Hank changed the product nameSelene ToyKeeper1-2/+2
2021-10-04added early initial attempt at a boost/12V/6V version of the MD11Selene ToyKeeper1-41/+47
(had to guess about some hardware details, unsure if correct)
2021-08-23moved jump start into FSM so it'll be more universal and the app won't need ↵Selene ToyKeeper1-2/+2
special clauses (also adjusted KR4 jump start levels a bit)
2021-08-14set KR4 default floor higher at Hank's request,Selene ToyKeeper1-4/+4
and reduced the jump-start-moon power a bit too (he says both are good now, but I don't have hardware to measure it myself) The higher floor is because, when the driver is really hot from being on turbo, going directly to moon causes the LEDs to turn off for a while until the driver cools. The new floor is the lowest level where post-turbo activation works reliably. However, it should turn on even at the level 1/150 when it's not hot.
2021-08-12calibrated KR4 jump-start-moon, may be too high on some older hardwareSelene ToyKeeper1-1/+1
2021-08-12got PFM / dynamic PWM actually working on Noctigon KR4Selene ToyKeeper1-7/+14
(and also added "jump start moon" to it) (and generally finished adding dynamic PWM support to FSM)
2020-08-31added model numbers to each build target, and to version check functionSelene ToyKeeper1-0/+2
2020-08-20raised ceiling levels for simple UI in each build targetSelene ToyKeeper1-1/+3
(the idea is "high but not crazy", or around 100% to 150% of thermally-sustainable level) ... and set the default steps to 5 instead of 3
2020-07-14merged Emisar D4v2.5 build targets with Noctigon KR4 build targetsSelene ToyKeeper1-0/+6
(because they're close enough that they can use the same code)
2020-07-12cleaned up s/ceiling/ceil/ and s/muggle_/simple_ui_/ in config filesSelene ToyKeeper1-6/+6
2020-04-19KR4-noFET: made candle mode vary more since the ramp is stretched out, ↵Selene ToyKeeper1-2/+5
raised therm faster level
2020-03-21added dynamic underclocking to KR4 to increase moon runtime, fixed ramp ↵Selene ToyKeeper1-2/+6
milestone levels
2020-03-20enabled soft factory reset on KR4, raised default floor to the lowest ↵Selene ToyKeeper1-1/+1
reliable level (moon level 1 flickers or doesn't work at all on some hardware)
2020-03-16removed old thermal junk and voltage_lowpass junk from cfg filesSelene ToyKeeper1-5/+0
2020-03-16added FETless KR4 build target, calibrated other KR4 therm faster level betterSelene ToyKeeper1-0/+45