Logo
Explore Help
Register Sign In
sadmen
/
jyoung
mirror of https://github.com/jyoung8607/openpilot.git
1
0
Fork
You've already forked jyoung
0
Code Issues Packages Projects Releases Wiki Activity
open source driving agent
10624 Commits
102 Branches
34 Tags
1.6 GiB
Tree: a95c896b5f
jyoung/system/hardware/tici/precise_power_measure.py

10 lines
286 B
Raw Normal View History Unescape Escape

precise power measurement script
3 years ago
#!/usr/bin/env python3
import numpy as np
add openpilot prefix to imports (#29498) * 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
2 years ago
from openpilot.system.hardware.tici.power_monitor import sample_power
precise power measurement script
3 years ago
if __name__ == '__main__':
CI: power draw test (#24292) * CI: power draw test * initialize hardware * try this * fix that * happy linter * actually happy Co-authored-by: Comma Device <device@comma.ai>
3 years ago
print("measuring for 5 seconds")
precise power measurement script
3 years ago
for _ in range(3):
CI: power draw test (#24292) * CI: power draw test * initialize hardware * try this * fix that * happy linter * actually happy Co-authored-by: Comma Device <device@comma.ai>
3 years ago
pwrs = sample_power()
precise power measurement script
3 years ago
print("mean %.2f std %.2f" % (np.mean(pwrs), np.std(pwrs)))
Powered by Gitea Version: 1.17.1 Page: 93ms Template : 2ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Српски Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Website