Skip to content

Conversation

Copy link

Copilot AI commented Dec 15, 2025

  • Analyze the PDO event emission mechanism
  • Make PDO event emission asynchronous using setImmediate()
  • Update tests to handle asynchronous event emission
  • Run tests to verify the fix
  • Test with high-frequency PDO updates (30Hz scenario)
  • Document the change
Original prompt

I'm investigating a problem where somewhere in the chain of PDO updates, updates are delayed like 3 seconds, then they all come in at once (they are supposed to be 30hz in my application)

I am wondering if PDOs in this library can be delayed or if there is a queue that can back up for some reason, as in my code, the start of the chain is

device.pdo.on('pdo', (e) => this._deviceOnPdo(e));

The fact that all the messages (or most of them) do end up coming through, just all at once, tells me something somewhere is buffering them


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants