mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
add mpld3 python pacakge (#24138)
* add mpld3 python pacakge * move to dev * fix for new pylint old-commit-hash: 6013d733a3a68f3c7f423f8c164d073da3221ef3
This commit is contained in:
@@ -10,6 +10,7 @@ def average(avg, sample):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
start_time = datetime.now()
|
||||
try:
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "--charge":
|
||||
print("not disabling charging")
|
||||
@@ -22,7 +23,6 @@ if __name__ == '__main__':
|
||||
power_average = (0., 0)
|
||||
capacity_average = (0., 0)
|
||||
bat_temp_average = (0., 0)
|
||||
start_time = datetime.now()
|
||||
while 1:
|
||||
with open("/sys/class/power_supply/bms/voltage_now") as f:
|
||||
voltage = int(f.read()) / 1e6 # volts
|
||||
|
||||
Reference in New Issue
Block a user