Support fan PWM settings #73

Merged
sb10q merged 16 commits from esavkin/thermostat:69-fan_pwm into master 2023-03-22 17:15:49 +08:00

16 Commits

Author SHA1 Message Date
afdab2f025 Make hwrev to be settings provider
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-03-22 17:14:28 +08:00
2c9436a0b3 Move HWRev to separate file, address PR comments, emit warning on the using PWM on unsupported fans
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-02-16 13:37:17 +08:00
83d5c28a67 Disable fan auto mode by default for Thermostat v2.2
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-02-07 12:04:59 +08:00
069e178966 Change PWM freq to 25kHz
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-02-02 10:52:22 +08:00
e6d928ef4e Fix PR comments
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-01-10 15:13:37 +08:00
a645bfb6e8 Remove all tacho/status related logic
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-01-05 15:30:07 +08:00
33070abd81 Make commands more consistent
Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-01-05 13:04:21 +08:00
21fc244eac Fan status via quadratic regression
* statuses: detect slow fan via quadratic regression and halts (hard stops) with constant threshold
* remove unsafe channels' copy and make FanCtrl own the channels
* scale fan values so that they would fit 0.05-1.0 PWM at all times
* rename fan-restore to fcurve-restore
* style, names and docs adjustments

Signed-off-by: Egor Savkin <es@m-labs.hk>
2023-01-05 11:57:21 +08:00
630635486e Polish minor issues
Signed-off-by: Egor Savkin <es@m-labs.hk>
2022-12-23 13:23:18 +08:00
ea2eb51b27 Add fan warnings
Signed-off-by: Egor Savkin <es@m-labs.hk>
2022-12-23 13:13:33 +08:00
58650d37f1 Refactor and coefficients implemented
Move all the fan logic to the separate file. Add controls for controlling curve.

Signed-off-by: Egor Savkin <es@m-labs.hk>
2022-12-22 17:28:08 +08:00
66143d2373 Implemented auto fan control
Signed-off-by: Egor Savkin <es@m-labs.hk>
2022-12-21 14:59:49 +08:00
583d06a78b Make fan cmd show the stats
Signed-off-by: Egor Savkin <es@m-labs.hk>
2022-12-20 12:58:00 +08:00
d117c784d9 Draft hw rev support and fan command
Signed-off-by: Egor Savkin <es@m-labs.hk>
2022-12-19 17:15:33 +08:00
4223f7a4ad Draft tacho support
Signed-off-by: Egor Savkin <es@m-labs.hk>
2022-12-15 16:47:52 +08:00
30350a3651 Draft support fan pwm settings
Signed-off-by: Egor Savkin <es@m-labs.hk>
2022-12-14 17:25:29 +08:00