Skip to content

Commit

Permalink
Merge pull request #47 from oresat/beacon-script-fix
Browse files Browse the repository at this point in the history
Fix beacon payload offsets in script
  • Loading branch information
ThirteenFish authored Oct 30, 2024
2 parents 42b2897 + 8b7b275 commit 6c1ead3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/beacon.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def main():
elif ax.payload[:3] != bytes("{{z", "ascii"):
print(" | invalid payload header", ax.payload[:3], end="")
else:
lband_rx = int.from_bytes(ax.payload[38:42], "little")
edl_seq = int.from_bytes(ax.payload[53:57], "little")
edl_rej = int.from_bytes(ax.payload[57:61], "little")
vbatt_1 = int.from_bytes(ax.payload[65:67], "little")
vbatt_2 = int.from_bytes(ax.payload[101:103], "little")
lband_rx = int.from_bytes(ax.payload[22:26], "little")
edl_seq = int.from_bytes(ax.payload[37:41], "little")
edl_rej = int.from_bytes(ax.payload[41:45], "little")
vbatt_1 = int.from_bytes(ax.payload[49:51], "little")
vbatt_2 = int.from_bytes(ax.payload[81:83], "little")
print(
f" | {lband_rx:4} rx {edl_seq:6}# {edl_rej:4}× {vbatt_1:6}mV {vbatt_2:6}mV", end=""
)
Expand Down

0 comments on commit 6c1ead3

Please sign in to comment.