FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

RoboRIO DMA

Solved!
Go to solution

Hi. So my understanding is that the DMA feature on the RoboRIO that captures the current entire state of inputs upon an interrupt. I'm programming in C++. I'm looking at the tDMAManager class, but I can't find any documentation on how to decode the buffer after calling read(). Any pointers to documentation would be appreciated. Thank you.

0 Kudos
Message 1 of 2
(2,720 Views)
Solution
Accepted by SpiritedDusty

Team 971 implemented a DMA class for some of their specific needs.  You can find at least one version of it here: http://frc971.org/content/2017-software

 

In the archive, look in \frc971\wpilib\dma.cc for an example of how to use the tDMAManager class and the format to expect in the buffer. The format depends on which channels in the stream are enabled.

 

Cheers,

-Joe

Message 2 of 2
(2,678 Views)