mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-25 04:13:53 +08:00
* CI: power draw test * initialize hardware * try this * fix that * happy linter * actually happy Co-authored-by: Comma Device <device@comma.ai>
10 lines
279 B
Python
Executable File
10 lines
279 B
Python
Executable File
#!/usr/bin/env python3
|
|
import numpy as np
|
|
from selfdrive.hardware.tici.power_monitor import sample_power
|
|
|
|
if __name__ == '__main__':
|
|
print("measuring for 5 seconds")
|
|
for _ in range(3):
|
|
pwrs = sample_power()
|
|
print("mean %.2f std %.2f" % (np.mean(pwrs), np.std(pwrs)))
|