From b53ef42124c67137e49b024cbd9cce6c8aad1a78 Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Fri, 31 Oct 2025 08:51:17 -0400 Subject: [PATCH] livoxGen1: documentation and formatting --- stimBuffApis/livoxGen1/livoxGen1.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stimBuffApis/livoxGen1/livoxGen1.cpp b/stimBuffApis/livoxGen1/livoxGen1.cpp index 1e22e4b..dab53c1 100644 --- a/stimBuffApis/livoxGen1/livoxGen1.cpp +++ b/stimBuffApis/livoxGen1/livoxGen1.cpp @@ -526,6 +526,12 @@ extern "C" void livoxGen1_attachDeviceReq( } // Parse integer parameters from provider params with defaults + /** EXPLANATION: + * We may want to add a new param here called "command-delay-ms" to control + * the delay we insert between commands sent to the device. 5ms has been + * shown to be sufficient for the Livox Avia. + */ + /* The Livox Avia will generally respond to a handshake request within * 50ms. So we set the handshake timeout to 300ms to be safe. */ @@ -534,7 +540,7 @@ extern "C" void livoxGen1_attachDeviceReq( * sending broadcast advertisement dgrams after about 5 seconds at most. * Generally, it will resume sending them within 1-2 seconds. */ - int retryDelayMs = 5250; // Default: 500ms + int retryDelayMs = 5250; // Default: 5250ms uint8_t smoSubnetNbits = 24; // Default: /24 subnet uint16_t dataPort = 56000; // Default data port uint16_t cmdPort = 56001; // Default command port