From 1f7c7f5f28d88109b06ff66eac86f7adf5746c48 Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Sat, 15 Nov 2025 22:22:08 -0400 Subject: [PATCH] livoxGen1: n-dgrams-per-frame default value 30=>84 --- docs/livox-gen1-lidar-dap-spec.md | 4 ++-- stimBuffApis/livoxGen1/livoxGen1.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/livox-gen1-lidar-dap-spec.md b/docs/livox-gen1-lidar-dap-spec.md index e5aca43..a4089b7 100644 --- a/docs/livox-gen1-lidar-dap-spec.md +++ b/docs/livox-gen1-lidar-dap-spec.md @@ -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**: ``` -+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**: @@ -150,7 +150,7 @@ Each stim-buff-api accepts device-specific parameters: | Parameter | Description | Default | Example | |-----------|-------------|---------|---------| | `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 diff --git a/stimBuffApis/livoxGen1/livoxGen1.cpp b/stimBuffApis/livoxGen1/livoxGen1.cpp index c843bf3..0cfe441 100644 --- a/stimBuffApis/livoxGen1/livoxGen1.cpp +++ b/stimBuffApis/livoxGen1/livoxGen1.cpp @@ -113,7 +113,7 @@ static int parseHistbuffMs( static size_t parseNDgramsPerFrame( const std::shared_ptr& spec) { - size_t nDgramsPerFrame = 30; // Default: 30 datagrams per frame + size_t nDgramsPerFrame = 84; // Default: 84 datagrams per frame const std::vector nDgramsPerFrameParamNames = { "n-dgrams-per-frame", "num-dgrams-per-frame" @@ -311,7 +311,7 @@ public: formatDesc.format = PcloudStimulusProducer::PcloudFormatDesc::Format ::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); auto pcloudDataProducer = std::make_shared(