fsm: thermal predictions appear to overflow
Bug #1802431 reported by
Selene ToyKeeper
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Flashlight Firmware Repository |
New
|
Low
|
Unassigned |
Bug Description
The thermal regulation code in FSM misbehaves when the host is heating up very quickly, causing it to not regulate downward until the rate of change decreases.
Currently, Anduril has a workaround for this by defining THERM_HARD_
FSM's thermal code needs to be changed to react better to fast changes.
To post a comment you must log in.
Tried a PID loop.
Problems found:
* Even with a 16x average, the temperature value jumps a lot
* Using 1°C based values provides a too coarse adjustment
* Using 1/8°C based values would need a KP of <1 ==> float math needed?
* Calculating with floats takes too much space
My conclusion: Trying something else.