aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-adc.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-05-01Use separate voltage adjustment value for pin7 readings.Selene ToyKeeper1-0/+4
2018-01-24FSM: added ability to adjust temperature calibration in UI (lower-case ↵Selene ToyKeeper1-3/+4
therm_cal_offset var).
2018-01-24Work around issues related to ADC interrupt auto-triggering itself.Selene ToyKeeper1-0/+1
(was firing off 1000 times faster than desired, causing several issues) (now only executes when explicitly requested by the WDT)
2017-09-22Slightly increased resolution of VOLTAGE_FUDGE_FACTOR.Selene ToyKeeper1-2/+2
My lights seemed to measure just a bit low, so hopefully this will help. It bumps up reported values by 0.05V.
2017-09-09Reworked thermal regulation.Selene ToyKeeper1-0/+1
Now actually works on turbo (was previously emitting "temp low" instead of "temp high" while in direct-drive, probably due to an overflow). Made stepdown work based on an average of the last few temperature predictions instead of just the most recent one. (reduced noise sensitivity) Made each temperature sample based on 8 measurements instead of 4, to reduce noise. Made standby mode re-init thermal measurement arrays, to avoid weird behavior next time light is used. Reduced fixed-point precision to avoid overflows. Reduced prediction strength to encourage stepping down faster while hot. (unfortunately also steps down later, I think, if it wasn't already hot) Not totally happy with new algorithm, but it's the least crappy of a whole bunch of things I tried. (for example, a PID approach with correction based mostly on I... didn't work very well) (taking an average of the last few predictions is very similar though, and works) (but the result is still kind of meh) Saving this so I'll have a functional base next time I try to improve it.
2017-08-31Started a Meteor M43 clone UI.Selene ToyKeeper1-1/+1
So far, UI1 and battcheck both work. UI2 and UI3 and other blinkies aren't implement yet. Added 6-bar battcheck style to match Meteor (ish). Increased maximum number of clicks to 12, because WTF. If your UI needs 12 clicks, what are you even doing in life?
2017-08-28Added thermal config mode... but I'm not sure if it's the right UI for this ↵Selene ToyKeeper1-1/+1
or not.
2017-08-25Made 4bar and 8bar battcheck styles work.Selene ToyKeeper1-0/+3
Added LVP handling for other modes, including battcheck.
2017-08-25Added battcheck mode to ramping-ui. It's bigger than I had hoped. :(Selene ToyKeeper1-0/+6
Added fsm-misc.*, which currently only has interruptible blink functions in it. (for blinking out numbers and such)
2017-08-23Added thermal regulation to SpaghettiMonster / Baton.Selene ToyKeeper1-4/+37
Made some LVP values configurable. Removed high_temperature() / low_temperature() shortcuts for now.
2017-08-19Completely reorganized SpaghettiMonster code into smaller logical pieces: ↵Selene ToyKeeper1-8/+22
fsm-*.c and fsm-*.h.
2017-08-19Renamed from RoundTable to SpaghettiMonster (FSM).Selene ToyKeeper1-1/+1
2017-08-18Some early ideas for Round Table. Nothing close to compile-able yet.Selene ToyKeeper1-15/+9
2017-03-26Fixed a compiler warning about tk-random.h.Selene ToyKeeper1-1/+4
2015-10-12Made pgm_rand() more erratic (beginning of PROGMEM is boring for this purpose),Selene ToyKeeper1-2/+3
made random strobe smaller and better-looking.
2015-10-12Oops, forgot to add tk-random header.Selene ToyKeeper1-0/+28