Skip to content
New issue

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

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

Already on GitHub? # to your account

Use 64 bit timestamp in DMA #6278

Merged
merged 3 commits into from
Jan 21, 2024
Merged

Conversation

ThadHouse
Copy link
Member

Closes #6276

Timestamps in DMA are now 64 bits. This means the buffer being read was 1 too small to hold all the data, which caused the DMA buffer to get out of sync with the actual data.

Fix the bug, and also put in a print if this state is ever detected again to report to wpilib. This should never happen if our code is correct.

@PeterJohnson PeterJohnson merged commit 0c6bd84 into wpilibsuite:main Jan 21, 2024
27 checks passed
frc971-automation pushed a commit to frc971/971-Robot-Code that referenced this pull request Jan 21, 2024
An update in NI-Libraries made the timestamp out of DMA to be 64 bits,
this issue was reported here:
wpilibsuite/allwpilib#6276,
and a fix was made on the wpilib side here:
wpilibsuite/allwpilib#6278,
Which we copied the fix over from.

Signed-off-by: Maxwell Henderson <mxwhenderson@gmail.com>
Change-Id: I0900c9a975549ac3e8872427dfd0cc8151dff188
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Meaning of timestamps in DMA results appears to have changed in 2024.2.1
2 participants