Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix beacon payload offsets in script #47

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

ThirteenFish
Copy link
Contributor

It turns out that when all the test values are zero it's easy to confuse one zero with another. I had copied the offsets here from the readthedocs except there were two flaws:

  • I copied them verbatim but those also include the header in the offsets whereas ax.payload does not. All the values need to have 16 subtracted from them.
  • Due to a caching issue (see e6583f in oresat-configs) some values had the wrong larger type and so the offsets were off for all later entries.

Eventually there should be a beacon.pack()/.unpack() so I don't have to bother with manually setting offsets, but until then this suffices.

It turns out that when all the test values are zero it's easy to confuse
one zero with another. I had copied the offsets here from the
readthedocs except there were two flaws:
- I copied them verbatim but those also include the header in the
  offsets whereas `ax.payload` does not. All the values need to have 16
  subtracted from them.
- Due to a caching issue (see e6583f in oresat-configs) some values had
  the wrong larger type and so the offsets were off for all later
  entries.

Eventually there should be a beacon.pack()/.unpack() so I don't have to
bother with manually setting offsets, but until then this suffices.
@ThirteenFish ThirteenFish requested a review from ryanpdx October 28, 2024 22:26
@ThirteenFish ThirteenFish merged commit 6c1ead3 into master Oct 30, 2024
1 check passed
@ThirteenFish ThirteenFish deleted the beacon-script-fix branch October 30, 2024 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants