From ab1b7d1cf13cf950e9bb150a93b90053c08076c6 Mon Sep 17 00:00:00 2001 From: Ryan Howard Date: Thu, 18 Jul 2024 10:25:07 -0400 Subject: [PATCH] Sensor buffer was oversized which caused excessive delays when sending accumulated data (#794) --- gripper/core/CMakeLists.txt | 2 +- pipettes/core/CMakeLists.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gripper/core/CMakeLists.txt b/gripper/core/CMakeLists.txt index e3c012332..14f3de07e 100644 --- a/gripper/core/CMakeLists.txt +++ b/gripper/core/CMakeLists.txt @@ -1,6 +1,6 @@ function(target_gripper_core TARGET) target_compile_definitions(${TARGET} PUBLIC USE_SENSOR_MOVE) - target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500) + target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300) target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true) target_sources(${TARGET} PUBLIC ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_tasks.cpp diff --git a/pipettes/core/CMakeLists.txt b/pipettes/core/CMakeLists.txt index f5725ec7c..d72b4d50a 100644 --- a/pipettes/core/CMakeLists.txt +++ b/pipettes/core/CMakeLists.txt @@ -15,7 +15,7 @@ endfunction() function(target_pipettes_core_single TARGET REVISION) target_pipettes_core_common(${TARGET} ${REVISION}) target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=SINGLE_CHANNEL) - target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500) + target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300) target_sources(${TARGET} PUBLIC ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_task_low_throughput.cpp) endfunction() @@ -23,7 +23,7 @@ endfunction() function(target_pipettes_core_multi TARGET REVISION) target_pipettes_core_common(${TARGET} ${REVISION}) target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=EIGHT_CHANNEL) - target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500) + target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300) target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true) target_sources(${TARGET} PUBLIC ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_task_low_throughput.cpp) @@ -32,7 +32,7 @@ endfunction() function(target_pipettes_core_96 TARGET REVISION) target_pipettes_core_common(${TARGET} ${REVISION}) target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=NINETY_SIX_CHANNEL) - target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500) + target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300) target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true) target_sources(${TARGET} PUBLIC ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_task_high_throughput.cpp) @@ -41,7 +41,7 @@ endfunction() function(target_pipettes_core_384 TARGET REVISION) target_pipettes_core_common(${TARGET} ${REVISION}) target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=THREE_EIGHTY_FOUR_CHANNEL) - target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500) + target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300) target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true) target_sources(${TARGET} PUBLIC ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_task_high_throughput.cpp)