mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-19 20:02:04 +08:00
161005a0c1
date: 2025-11-19T19:10:11 master commit: a29fdbd02407d41ecbcc69d151bb4837bfba3cbc
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
|