livoxGen1: n-dgrams-per-frame default value 30=>84
This commit is contained in:
@@ -42,7 +42,7 @@ Each stim-buff-api is designed to work with specific stim-iface libraries that u
|
|||||||
|
|
||||||
**Example with n-dgrams-per-frame parameter**:
|
**Example with n-dgrams-per-frame parameter**:
|
||||||
```
|
```
|
||||||
+edev | avia0 | pcloud(format=xyz) | livoxGen1-pcloud(data-rate-hz=10,n-dgrams-per-frame=30) | livoxProto1(command-timeout-ms=1000,retry-delay-ms=3000,smo-ip=192.168.1.50,smo-subnet-nbits=24) | 3JEDK380010Z39
|
+edev | avia0 | pcloud(format=xyz) | livoxGen1-pcloud(data-rate-hz=10,n-dgrams-per-frame=84) | livoxProto1(command-timeout-ms=1000,retry-delay-ms=3000,smo-ip=192.168.1.50,smo-subnet-nbits=24) | 3JEDK380010Z39
|
||||||
```
|
```
|
||||||
|
|
||||||
**Alternative Format Examples**:
|
**Alternative Format Examples**:
|
||||||
@@ -150,7 +150,7 @@ Each stim-buff-api accepts device-specific parameters:
|
|||||||
| Parameter | Description | Default | Example |
|
| Parameter | Description | Default | Example |
|
||||||
|-----------|-------------|---------|---------|
|
|-----------|-------------|---------|---------|
|
||||||
| `data-rate-hz` | Data sampling rate in Hz | - | `data-rate-hz=10` |
|
| `data-rate-hz` | Data sampling rate in Hz | - | `data-rate-hz=10` |
|
||||||
| `n-dgrams-per-frame` / `num-dgrams-per-frame` | Number of UDP datagrams per staging buffer frame | 30 | `n-dgrams-per-frame=30` or `num-dgrams-per-frame=30` |
|
| `n-dgrams-per-frame` / `num-dgrams-per-frame` | Number of UDP datagrams per staging buffer frame | 84 | `n-dgrams-per-frame=84` or `num-dgrams-per-frame=84` |
|
||||||
|
|
||||||
### Quale-Iface-API Parameters
|
### Quale-Iface-API Parameters
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ static int parseHistbuffMs(
|
|||||||
static size_t parseNDgramsPerFrame(
|
static size_t parseNDgramsPerFrame(
|
||||||
const std::shared_ptr<smo::device::DeviceAttachmentSpec>& spec)
|
const std::shared_ptr<smo::device::DeviceAttachmentSpec>& spec)
|
||||||
{
|
{
|
||||||
size_t nDgramsPerFrame = 30; // Default: 30 datagrams per frame
|
size_t nDgramsPerFrame = 84; // Default: 84 datagrams per frame
|
||||||
const std::vector<std::string> nDgramsPerFrameParamNames = {
|
const std::vector<std::string> nDgramsPerFrameParamNames = {
|
||||||
"n-dgrams-per-frame",
|
"n-dgrams-per-frame",
|
||||||
"num-dgrams-per-frame"
|
"num-dgrams-per-frame"
|
||||||
@@ -311,7 +311,7 @@ public:
|
|||||||
formatDesc.format = PcloudStimulusProducer::PcloudFormatDesc::Format
|
formatDesc.format = PcloudStimulusProducer::PcloudFormatDesc::Format
|
||||||
::XYZI;
|
::XYZI;
|
||||||
|
|
||||||
// Parse n-dgrams-per-frame from stim-buff-api params (default: 30)
|
// Parse n-dgrams-per-frame from stim-buff-api params (default: 84)
|
||||||
size_t nDgramsPerFrame = parseNDgramsPerFrame(context->spec);
|
size_t nDgramsPerFrame = parseNDgramsPerFrame(context->spec);
|
||||||
|
|
||||||
auto pcloudDataProducer = std::make_shared<PcloudStimulusProducer>(
|
auto pcloudDataProducer = std::make_shared<PcloudStimulusProducer>(
|
||||||
|
|||||||
Reference in New Issue
Block a user