IQ.Pilot Prebuilt Release @ 27f668a

This commit is contained in:
IQ.Lvbs CI [bot]
2026-09-03 18:23:24 -05:00
commit b073c5182b
2554 changed files with 679696 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
import numpy as np
class FanController:
def update(self, cur_temp: float, ignition: bool, max_cool: bool = False) -> int:
if max_cool:
return 100
fan_pwr_out = int(np.interp(cur_temp, [70.0, 85.0, 90.0], [0, 80, 100]))
if not ignition:
fan_pwr_out = min(fan_pwr_out, 30)
return fan_pwr_out