Rate Group Slipping #2340
-
Hello! I am trying to create a rate group that supports various interrupt frequencies (1/4Hz, 1/2Hz, 1Hz, 10Hz, and 25Hz). I thus set the clock of the overall system to the Lowest common multiple (50Hz), and I created an event within the 10Hz handler to validate that it is working correctly. I am noticing that the timing of the 10Hz event (as seen within the fprime-gds popup events tab) is slipping, aka it is interrupting slighlty late every iteration. I am wondering if this is the expected behavior and, if not, how to make these interrupts hit at the same exact interval every time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
@noahrose18 Just some clarification: The terminology would be rate groups, at 1/4Hz, 1/2Hz, etc. The typical approach would be to drive the |
Beta Was this translation helpful? Give feedback.
Is the ISR driven by a hardware timer? Something else?
If you are doing the pattern:
It will slow the loop since you are executing the logic then sleeping.