Skip to content

Non real-time frames receiving #128

@tucher

Description

@tucher

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions