Skip to content

Commit 776d00c

Browse files
committed
Sensor buffer was oversized which caused excessive delays when sending accumulated data (#794)
1 parent f7f0ef5 commit 776d00c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

gripper/core/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function(target_gripper_core TARGET)
22
target_compile_definitions(${TARGET} PUBLIC USE_SENSOR_MOVE)
3-
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500)
3+
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300)
44
target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true)
55
target_sources(${TARGET} PUBLIC
66
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_tasks.cpp

pipettes/core/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ endfunction()
1515
function(target_pipettes_core_single TARGET REVISION)
1616
target_pipettes_core_common(${TARGET} ${REVISION})
1717
target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=SINGLE_CHANNEL)
18-
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500)
18+
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300)
1919
target_sources(${TARGET} PUBLIC
2020
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_task_low_throughput.cpp)
2121
endfunction()
2222

2323
function(target_pipettes_core_multi TARGET REVISION)
2424
target_pipettes_core_common(${TARGET} ${REVISION})
2525
target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=EIGHT_CHANNEL)
26-
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500)
26+
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300)
2727
target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true)
2828
target_sources(${TARGET} PUBLIC
2929
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_task_low_throughput.cpp)
@@ -32,7 +32,7 @@ endfunction()
3232
function(target_pipettes_core_96 TARGET REVISION)
3333
target_pipettes_core_common(${TARGET} ${REVISION})
3434
target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=NINETY_SIX_CHANNEL)
35-
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500)
35+
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300)
3636
target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true)
3737
target_sources(${TARGET} PUBLIC
3838
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_task_high_throughput.cpp)
@@ -41,7 +41,7 @@ endfunction()
4141
function(target_pipettes_core_384 TARGET REVISION)
4242
target_pipettes_core_common(${TARGET} ${REVISION})
4343
target_compile_definitions(${TARGET} PUBLIC PIPETTE_TYPE_DEFINE=THREE_EIGHTY_FOUR_CHANNEL)
44-
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=500)
44+
target_compile_definitions(${TARGET} PUBLIC SENSOR_BUFF_SIZE=300)
4545
target_compile_definitions(${TARGET} PUBLIC USE_TWO_BUFFERS=true)
4646
target_sources(${TARGET} PUBLIC
4747
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/can_task_high_throughput.cpp)

0 commit comments

Comments
 (0)