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

Added function for gathering the latest packet from the DMP FIFO Buffer #509

Merged
merged 9 commits into from
Feb 6, 2020

Conversation

ZHomeSlice
Copy link
Contributor

The Added dmpGetCurrentFIFOPacket function:

  • Handles overflow and all other conditions to retrieve the latest packets in the most efficient way.
  • This will work with or without interrupt triggering and
  • All blocking code has no effect on the results as the latest packet is still retrieved after any and all delays no matter how long.
  • This has been tested over the past several months without any further modifications and should be ready for prime time.

The example code has been modified and now uses this function as it is more efficient and more reliable than the current process.

ToDo Test the function with ESP32 for the ESPWiFi sketch. and make changes in that example which I believe would seamlessly improve that sketch once tested.
ZHomeSlice

Eliminated the headakes from FIFO buffer overflow and No More need for the interrupt pin and attach interrupts

After an overflow of the FIFO buffer I correct the damage to the corrupted FIFO buffer eliminating the need to reset the fifo buffer. Just get the latest DMP reading when you need it ignore the rest.
One simple function call
GetCurrentFIFOPacket() if you need data onec in a blue moon
and
GetCurrentFIFOPacketTimed() if you want to have the speed of using the interupt pin but don't want to deal with interrupts uses a blink withou delay timer to capture the fifo packet at the moment it is created (auto tunes).

Now you can dely() all you want and still get perfect results!!!
Z
…he DMP generated FIFO Buffer

The Added  dmpGetCurrentFIFOPacket function:
- Handles overflow and all other conditions to retrieve the latest packes in the most efficient way.
- This will work with or without interrupt triggering and
- All blocking code has no affect on the results as the latest packet is still retrieved after any and all delays no matter how long.
- This has been tested over the past several months without any further modifications and should be ready for prime time.

The example code has been modified and now uses this function as it is more efficient and more reliable than the current process.

ToDo Test the function with ESP32 for the ESPWiFi sketch. and make changes in that example which I believe this would seamlessly improve that sketch once tested.
ZHomeSlice
The Added  dmpGetCurrentFIFOPacket function:
- Handles overflow and all other conditions to retrieve the latest packes in the most efficient way.
- This will work with or without interrupt triggering and
- All blocking code has no affect on the results as the latest packet is still retrieved after any and all delays no matter how long.
- This has been tested over the past several months without any further modifications and should be ready for prime time.

The example code has been modified and now uses this function as it is more efficient and more reliable than the current process.

ToDo Test the function with ESP32 for the ESPWiFi sketch. and make changes in that example which I believe this would seamlessly improve that sketch once tested.
ZHomeSlice2
@jrowberg
Copy link
Owner

jrowberg commented Feb 5, 2020

Sorry I missed this before; can you flatten the example structure a bit on the new files? It looks like you have an extra subfolder where one is not needed (e.g. "/Examples/ExName/ExName/ExName.ino").

@ZHomeSlice
Copy link
Contributor Author

In the examples I only edited the existing ones. No additional folders should have been added. I'll take another look tonight when I get to a computer.

@ZHomeSlice
Copy link
Contributor Author

I think that fixed the problem with the directories. Thank you.

@jrowberg jrowberg merged commit 490c9c6 into jrowberg:master Feb 6, 2020
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.

3 participants