aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-states.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rewrote the event system to use a single byte for each event instead of an ↵Selene ToyKeeper2018-11-111-2/+2
| | | | | | | array of actions. Not thoroughly tested yet, not done yet, have only updated Anduril to fit, and only partially.
* Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper2017-09-031-4/+7
| | | | | | | | | Moved go_to_suspend thing into main() instead of making each UI handle that during loop(). Made default_state() optional. Fixed bug where battcheck and other number readouts could interfere with the state which interrupted them. (they would sometimes turn the LED off after the new state had already started) Updated darkhorse's moon levels to match new ramp on D4 hardware.
* Ramp config mode actually works now...Selene ToyKeeper2017-08-271-6/+7
| | | | | | Added EV_reenter_state event to indicate an obscuring state was popped off the stack and the underlying one is now on top again.
* Added thermal regulation to SpaghettiMonster / Baton.Selene ToyKeeper2017-08-231-0/+2
| | | | | | Made some LVP values configurable. Removed high_temperature() / low_temperature() shortcuts for now.
* Completely reorganized SpaghettiMonster code into smaller logical pieces: ↵Selene ToyKeeper2017-08-191-0/+108
fsm-*.c and fsm-*.h.