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

Non real-time frames receiving #128

Open
tucher opened this issue Feb 10, 2018 · 0 comments
Open

Non real-time frames receiving #128

tucher opened this issue Feb 10, 2018 · 0 comments

Comments

@tucher
Copy link

tucher commented Feb 10, 2018

sweep firmware version

1.4

libsweep version + affected bindings

1.3

operating system

macOS

Description:

When motor speed is set to 10 Hz and sample rate is 1000 Hz, I see a quite strange behaviour.
Code basically looks like that

currentMS = getMS();
while (true){
  device->get_scan();
  cout << getMS() - currentMS();
  currentMS = getMS();
}

I expected that I will see similar time intervals between readings about 100 ms. But instead of that I have this result:
539
0
1
0
0
541
0
1
0
1
539
1
0
0
1
541
0
1
0
1

So, average sample rate is about 1000Hz, but for some reason frames are packed together into 5-frame packs, which are received every 500ms. It is not documented and it is very bad for realtime systems.

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

No branches or pull requests

1 participant