mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-04 21:12:07 +08:00
33d5cfc393
date: 2025-12-18T23:23:16 master commit: 3cdee7b54718ee14bd85befd6c5bad3d699c5479
10 lines
284 B
Python
Executable File
10 lines
284 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(f"mean {np.mean(pwrs):.2f} std {np.std(pwrs):.2f}")
|