-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels