mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-02 22:23:42 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
15 lines
301 B
Python
Executable File
15 lines
301 B
Python
Executable File
#!/usr/bin/env python
|
|
import time
|
|
|
|
from panda import Panda
|
|
|
|
if __name__ == "__main__":
|
|
p = Panda()
|
|
power = 0
|
|
while True:
|
|
p.set_fan_power(power)
|
|
time.sleep(5)
|
|
print("Power: ", power, "RPM:", str(p.get_fan_rpm()), "Expected:", int(6500 * power / 100))
|
|
power += 10
|
|
power %= 110
|