Livox: Add new loadable libs for Protocolv1 and gen1 lidars

We've added two new libs:
* commonLibs/livoxProto1
* senseApis/livoxGen1

They currently get to the point of detecting my Livox Avia on the
network over UDP. This was really easy to get done in one night
using boost::asio and Cursor, honestly.
This commit is contained in:
2025-09-05 00:08:25 -04:00
parent f00e1c7cf1
commit 6eb6fa1eb0
13 changed files with 771 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
option(ENABLE_LIB_livoxProto1 "Enable Livox Protocol v1 backend lib" OFF)
if(ENABLE_LIB_livoxProto1)
add_library(livoxProto1 SHARED
livoxProto1.cpp
livoxProto1Core.cpp
livoxProto1Device.cpp
livoxProto1Protocol.cpp
)
# Set config define for header generation
add_compile_definitions(CONFIG_LIB_LIVOXPROTO1_ENABLED)
target_include_directories(livoxProto1 PUBLIC ${Boost_INCLUDE_DIRS})
target_link_libraries(livoxProto1 ${Boost_LIBRARIES})
# Install rules
install(TARGETS livoxProto1 DESTINATION lib)
endif()