diff options
| author | Selene ToyKeeper | 2017-09-09 23:07:35 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-09-09 23:07:35 -0600 |
| commit | fd3f600c7b17995ba6509802da71a3d2fd0fce6e (patch) | |
| tree | bffbbd5916f3c7b55123e8c0ee186b660b6b320e /spaghetti-monster/baton/baton-simpler.c | |
| parent | Made thermal regulation adjust smoothly (1 PWM step at a time) to make adjust... (diff) | |
| download | anduril-fd3f600c7b17995ba6509802da71a3d2fd0fce6e.tar.gz anduril-fd3f600c7b17995ba6509802da71a3d2fd0fce6e.tar.bz2 anduril-fd3f600c7b17995ba6509802da71a3d2fd0fce6e.zip | |
Reworked thermal regulation.
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.
Diffstat (limited to 'spaghetti-monster/baton/baton-simpler.c')
0 files changed, 0 insertions, 0 deletions
