aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-adc.c (unfollow)
Commit message (Expand)AuthorFilesLines
2023-11-02reorganized project files (part 1)Selene ToyKeeper1-573/+0
2023-07-08Partially fixed oscillating aux LED voltage colors while asleep.Selene ToyKeeper1-9/+14
2023-07-08Fixed spurious voltage warnings in attiny1616 sleep mode. Fixed by SammysHP.Selene ToyKeeper1-9/+7
2023-04-26made sleep voltage work on attiny1616 againSelene ToyKeeper1-0/+25
2023-04-25fixed bug behind K93_LOCKOUT_KLUDGE which could exit lockout in solid aux modeSelene ToyKeeper1-0/+2
2023-04-17switched the rest of FSM + Anduril to use SPDX license headersSelene ToyKeeper1-22/+5
2023-04-16reduced ROM by ~600 bytes by moving all eeprom config values to a "cfg" structSelene ToyKeeper1-7/+7
2023-03-28just whitespace / commentsSelene ToyKeeper1-1/+1
2022-10-21fixed voltage calibration resolution on SP10 ProSelene ToyKeeper1-2/+2
2021-12-08added a compile option for USE_LOWPASS_WHILE_ASLEEP,Selene ToyKeeper1-2/+20
2021-01-12Add Sofirn SP10S (adapter) and dual-voltage logicGabriel Hart1-0/+4
2020-12-18Add AVR 1-Series and t1616 board and scriptsGabriel Hart1-1/+52
2020-09-07added support for external thermal sensors in fsm-adc.cSelene ToyKeeper1-0/+14
2020-08-23attempt to fix laggy voltage readings right after waking, on FW3ASelene ToyKeeper1-5/+4
2020-07-31added a voltage calibration / correction function, 7C from battcheck to confi...Selene ToyKeeper1-2/+12
2020-04-27set default thermal response magnitude back to how it was before the KR4 upda...Selene ToyKeeper1-1/+1
2020-04-19added tweakable thermal_response_magnitude option, adjusted KR4 thermal vars,...Selene ToyKeeper1-10/+10
2020-04-19made thermal response larger when error is large, smaller when error is smallSelene ToyKeeper1-2/+8
2020-03-26made thermal regulation use a smaller target window, and prioritize cooling moreSelene ToyKeeper1-3/+3
2020-03-16fixed calc_voltage_divider() (use 10-bit calibration values, not 8-bit)Selene ToyKeeper1-1/+1
2020-03-16merged some misc fixes from pakutrai, cleaned up comments, removed unused sym...Selene ToyKeeper1-2/+3
2020-03-16reduced regulation jitter by biasing errors toward zero by a constant amount,Selene ToyKeeper1-1/+14
2020-03-15the ADC sample count doesn't need to be 16-bit any more, and isn't really a c...Selene ToyKeeper1-2/+3
2020-03-15removed dead comments and dead codeSelene ToyKeeper1-28/+2
2020-03-15replaced temperature_timer (which wasn't even being used) with a variable del...Selene ToyKeeper1-27/+43
2020-03-13tried to make thermal code a bit less twitchy...Selene ToyKeeper1-7/+10
2020-03-05initial support for Noctigon KR4Selene ToyKeeper1-0/+6
2020-02-28went back to continuous lowpass because it had the best noise reductionSelene ToyKeeper1-51/+73
2020-02-05brute force method for reducing ADC noise -- average a ridiculous number of s...Selene ToyKeeper1-19/+13
2020-02-05still doesn't work, but at least it's a bit less broken than before...Selene ToyKeeper1-8/+12
2020-02-05first pass at a smaller simpler thermal regulation algorithm...Selene ToyKeeper1-75/+52
2020-01-30saving state of ADC / WDT refactoring before doing more changes... what chan...Selene ToyKeeper1-69/+38
2020-01-30switched to a pseudo-rolling-average method to reduce noise, set prescaler ba...Selene ToyKeeper1-8/+13
2020-01-29increased effective ADC resolution by switching from continuous-lowpass to su...Selene ToyKeeper1-64/+43
2020-01-29remove truncation noise by adding 0.5 to each resultSelene ToyKeeper1-24/+22
2020-01-29rewrote ADC code to use a continuous lowpass system on all measurements, to e...Selene ToyKeeper1-121/+175
2019-12-17fixed too-slow thermal response (was introduced in the irq-refactor branch)Selene ToyKeeper1-5/+8
2019-11-25calibrated Noctigon K1, changed voltage divider calibration values to 10-bit ...Selene ToyKeeper1-1/+1
2019-11-19reduced build size by a few bytesSelene ToyKeeper1-1/+1
2019-11-19fixed ADC cycles running 2X as fast as intendedSelene ToyKeeper1-8/+8
2019-11-14added a lowpass filter for battery voltage measurementsSelene ToyKeeper1-37/+22
2019-11-14fixed ADC code; measures and behaves correctly now, and is easier to read...Selene ToyKeeper1-39/+37
2019-11-14started refactoring ADC code to split voltage and temperature into their own ...Selene ToyKeeper1-210/+222
2019-11-14refactored how interrupts work...Selene ToyKeeper1-10/+35
2019-09-28remapped D1S V2 pins to match new driverSelene ToyKeeper1-2/+2
2019-08-05merged a sanitized copy of the Emisar D4v2 branch; history summarized below:Selene ToyKeeper1-29/+108
2019-07-26merged a sanitized copy of the Emisar D4v2 branch; history summarized below:Selene ToyKeeper1-29/+108
2019-05-22Rewrote thermal regulation. Seems to be much more stable now... doesn't boun...Selene ToyKeeper1-71/+40
2019-01-03removed redundant clock speed lines, updated some commentsSelene ToyKeeper1-1/+1
2018-06-23Moved pseudo_rand() into its own header, and made it gather entropy from ADC ...Selene ToyKeeper1-0/+5