mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-21 22:53:52 +08:00
* add openpilot prefix to imports * more * more * fix docs * fix linter * bump submodules * fix patched tests * update dynamic imports * debug * Revert "debug" This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b. * fix pm test
10 lines
286 B
Python
Executable File
10 lines
286 B
Python
Executable File
#!/usr/bin/env python3
|
|
import numpy as np
|
|
from openpilot.system.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)))
|