From 9d3c0581bc1cbcb92e738e0ccb76e39f4545aa11 Mon Sep 17 00:00:00 2001 From: Gagua on MyIR master Date: Mon, 29 Jul 2019 16:17:19 +0000 Subject: [PATCH] LRF_Kernel to make Flip with 32 TH zones --- lib/App/3dSERVER/LRF_Kernel.cpp | 4 ++++ put_to_git | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/App/3dSERVER/LRF_Kernel.cpp b/lib/App/3dSERVER/LRF_Kernel.cpp index 2b8685e6..04850d82 100644 --- a/lib/App/3dSERVER/LRF_Kernel.cpp +++ b/lib/App/3dSERVER/LRF_Kernel.cpp @@ -716,7 +716,11 @@ thresholdNode *LRF_Kernel::getTreshold( uint32_t &size, uint8_t kID ){ if( m_pHardwareManager!= NULL ) { thresholdNode *ptr; ptr = m_pHardwareManager->getWorkingMemory(); +#ifdef TH_PER_MIRROR + kID = (kID>39)?39:kID; +#else kID = (kID>15)?15:kID; +#endif if( ptr!= NULL ){ m_nThresholdSize = TH_SIZE_NODES; if( m_pThreshold == NULL ) { diff --git a/put_to_git b/put_to_git index 1b3a2ea6..20767913 100755 --- a/put_to_git +++ b/put_to_git @@ -1,4 +1,4 @@ #!/bin/bash #git commit -a -m '$1' -git commit -a -m '3DServer tart changes to mirror th' +git commit -a -m 'LRF_Kernel to make Flip with 32 TH zones'