aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-13fixed tint ramp brightness being off by one level,Selene ToyKeeper1-9/+7
and eliminated bias toward first PWM channel
2018-09-13Added tint ramping. Not tested yet. Also added BLF Lantern build target.Selene ToyKeeper1-0/+20
2018-06-23Don't auto-shutoff indicator LED when entering standby mode.Selene ToyKeeper1-0/+1
2018-06-17Started adding support for aux LEDs which go out the front instead of ↵Selene ToyKeeper1-0/+4
lighting up the button. (so they should only be on when the main LEDs are off)
2017-10-21Moved indicator_led() from Anduril into FSM. Made it auto-set indicator ↵Selene ToyKeeper1-0/+7
level based on ramp level. Made Anduril configure voltage fudge and indicator LED functions based on driver type. Removed "ticks_spent_awake" thing since it's redundant. EV_tick arg does the same thing in fewer bytes. Rearranged some clauses in off_state to put events in a more coherent order.
2017-09-26Added dynamic underclocking to FSM, instead of doing it manually in Anduril.Selene ToyKeeper1-0/+3
2017-09-10Fixed a bug in gradual_tick(), I think.Selene ToyKeeper1-2/+4
It was off by one, and caused actual_level to be off by one, which caused other parts of the code to do weird things... - end-of-ramp blink would happen repeatedly. - ramping up went slower (or not at all, with gradual_tick on each tick) - would sometimes trigger underheating code at moon level, and then glide up to the minimum regulation floor
2017-09-09Rewrote gradual_tick(). Is smaller, better, and safer now.Selene ToyKeeper1-116/+28
Decreased gradual adjustment speed again to make thermal regulation less stair-stepped.
2017-09-09Made thermal regulation adjust smoothly (1 PWM step at a time) to make ↵Selene ToyKeeper1-0/+146
adjustments less noticeable. Added set_level_gradually() and gradual_tick() to ramping lib. Not terribly happy with it yet, but it at least works in practice. Added extra thermal regulation checks because I was running into stupid behavior in edge cases. Increased lowest thermal stepdown level to MAX_LEVEL/3 because it was going down way too low before. (is still pretty low, but not quite as bad)
2017-08-24Added a ramping UI example.Selene ToyKeeper1-0/+62
Added ramping support in general.