IQ.Pilot Release Commit @ bec7652
This commit is contained in:
14
artifacts/package_sources/panda/scripts/fan/fan_test.py
Executable file
14
artifacts/package_sources/panda/scripts/fan/fan_test.py
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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()))
|
||||
power += 10
|
||||
power %= 110
|
||||
Reference in New Issue
Block a user