Kaynağa Gözat

修改2.1.04版本中的一个告警

zhoutao 1 hafta önce
ebeveyn
işleme
8c3cc50601

+ 2 - 1
compile.bat

@@ -46,9 +46,10 @@ set "LCT_COORDCAL=src\modules\location\lct_coordcal.c"
 set "LCT_PREDICTION=src\modules\location\lct_prediction.c"
 set "LCT_COORDCAL_ONE=src\modules\location\lct_coordcal_one.c"
 set "LCT_COORDCAL_TWO=src\modules\location\lct_coordcal_two.c"
+set "LCT_TOA=src\modules\location\lct_toa.c"
 set "LCT_COORDSEL=src\modules\location\lct_coordsel.c"
 set "LCT_SINC=src\modules\location\lct_sinc.c"
-set "LOCATION=%LCT_MAIN% %LCT_FIRSTPATH% %LCT_COORDCAL% %LCT_PREDICTION% %LCT_COORDCAL_ONE% %LCT_COORDCAL_TWO% %LCT_COORDSEL% %LCT_SINC%"
+set "LOCATION=%LCT_MAIN% %LCT_FIRSTPATH% %LCT_COORDCAL% %LCT_PREDICTION% %LCT_COORDCAL_ONE% %LCT_COORDCAL_TWO% %LCT_TOA% %LCT_COORDSEL% %LCT_SINC%"
 
 ::4、路由模块
 set "ROUTE_MAIN=src\modules\route\route_main.c"

+ 3 - 2
src/modules/location/lct_toa.c

@@ -22,7 +22,7 @@ void lct_toa_cal_bts_first_path_index_offset(uint8 byFirstPathFlag, LCT_FIRSTPAT
     uint32 dwMinFrameNo = 0;
     int32 dwFrameGap = 0;                // 帧间距
     uint32 dwFrameNo = gg_dwFrameNo - 1; // 帧号
-    uint32 dwFpOffsetGap = 0;            // 前后两次偏移量间距
+    int32 dwFpOffsetGap = 0;             // 前后两次偏移量间距
 
     uint8 byFirstPathNum = pstFirstPathList->byBtsNum;
     LCT_FIRSTPATH_T *pstFirstPathData = NULL;
@@ -64,7 +64,8 @@ void lct_toa_cal_bts_first_path_index_offset(uint8 byFirstPathFlag, LCT_FIRSTPAT
             pstToaFpOffsetList->dwCurrentOffset = dwCurrentOffset;
 
             // 判断当前偏移量是否有效
-            dwFpOffsetGap = abs(dwCurrentOffset - pstToaFpOffsetList->dwAheadOffset);
+            dwFpOffsetGap = dwCurrentOffset - pstToaFpOffsetList->dwAheadOffset;
+            dwFpOffsetGap = abs(dwFpOffsetGap);
             if (dwFpOffsetGap <= LCT_TOA_FP_OFFSET_VALID_THRES)
             {
                 pstToaFpOffsetList->byOffsetValidFlag = 1; // 有效

+ 2 - 2
src/sysdefine/sysmacro.h

@@ -77,7 +77,7 @@
 #define PUB_MAC_ADDRESS_LEN 12 // MAC地址字节数
 
 // 测试宏定义
-#define PUB_DEBUG_ENABLE 1 // 打开调试开关
-// #define PUB_DEBUG_ENABLE 0 // 关闭调试开关
+// #define PUB_DEBUG_ENABLE 1 // 打开调试开关
+#define PUB_DEBUG_ENABLE 0 // 关闭调试开关
 
 #endif

BIN
wasm/aplm8000sdk.wasm → wasm/aplm8000sdk2.1.04.wasm


BIN
wasm/版本发布表.xlsx