You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
301 B
15 lines
301 B
11 months ago
|
#!/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
|