Improvements for TVAC tests #98

Merged
muellerr merged 25 commits from meier/tvac-tests into develop 2022-06-15 11:31:00 +02:00
Showing only changes of commit c9d35df277 - Show all commits

View File

@ -202,14 +202,14 @@ def handle_pdu_data(
f"{voltage_list[idx]:05} | {current_list[idx]:04}" f"{voltage_list[idx]:05} | {current_list[idx]:04}"
) )
pw.dlog(content_line) pw.dlog(content_line)
fmt_str = "!IBh" fmt_str = "!IBf"
inc_len = struct.calcsize(fmt_str) inc_len = struct.calcsize(fmt_str)
(boot_count, batt_mode, temperature) = struct.unpack( (boot_count, batt_mode, temperature) = struct.unpack(
fmt_str, hk_data[current_idx: current_idx + inc_len] fmt_str, hk_data[current_idx: current_idx + inc_len]
) )
info = ( info = (
f"Boot Count {boot_count} | Battery Mode {batt_mode} | " f"Boot Count {boot_count} | Battery Mode {batt_mode} | "
f"Temperature {temperature / 10.0}" f"Temperature {temperature}"
) )
pw.dlog(info) pw.dlog(info)