123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- //
- // Created by lloyd on 2020/9/28.
- //
- #include "math.h"
- #ifndef GTCVR_GTRUNCONF_H
- #define GTCVR_GTRUNCONF_H
- /******dgns core param**********/
- #define gtrunconf_rows 192;
- #define gtrunconf_cols 256;
- #define gtrunconf_svmmodel_load 2
- #define gtrunconf_cvcore_regnfunc 1
- // 周期诊断 延迟时间 单位: ms
- #define gtrunconf_interval_delaytime 3000
- #define gtrunconf_xml_basepath "../model.xml"
- #define gtrunconf_txt_basepath "../type.txt"
- #define SGTSTRUNITWIDTH 8
- #define gtPointsNumConditionlimit 50
- /*-----------------------------*/
- /******Gray cal param**********/
- #define densecard_point_num_max 2100
- #define cardgray_width 64
- #define cardgray_height 32
- #define cardgray_value_default 129
- #define cardgray_value_usage 1
- #define cardgray_characters_num 48
- //2x2 blocks cal
- #define cardgray_row_block_num 2
- //2x2 blocks cal
- #define cardgray_col_block_num 2
- // must be 2
- #define cardgray_nlgt_func_count 2
- //must be 6
- #define cardgray_block_cha_num 6
- /*-----------------------------*/
- /******cal standard gt**********/
- #define standard_gt_groups_max_num 7
- #define standard_gt_minest_semblance 0.95
- //标准功图持续出现7天以上才会认为有效
- #define standard_gt_effect_days 7
- /*-----------------------------*/
- /*** gt normalization param************/
- /* 256*192(0.05边缘区划分)→(6-250)(5-187)
- * 最低预留像素边缘空间4px
- */
- //256*192
- #define mapgt_MapX 256
- //256*192
- #define mapgt_MapY 192
- //256 0.05边缘区划分)→(6-250)
- #define mapgt_MinX 6
- //256 0.05边缘区划分)→(6-250)
- #define mapgt_MaxX 250
- //192 0.05边缘区划分)→(5-187)
- #define mapgt_MinY 5
- //192 0.05边缘区划分)→(5-187)
- #define mapgt_MaxY 187
- // 偏移量x
- #define mapgt_OffsetX 6
- // 偏移量y
- #define mapgt_OffsetY 5
- /*----------------------------*/
- /********************************/
- #define baseparam_l_fistdownturnpoint_default -1
- /*---------------------------*/
- /***********postgresql *******************/
- /*postgresql connector string*/
- #define postgresql_connector_string_libpqC "dbname=postgres user=postgres password=123456 hostaddr=127.0.0.1 port=5432"
- #define postgresql_aes_secretkey "DHEG"
- #define postgresql_field_encryptfunc "aes"
- /*-------------------------------------------------------*/
- /***********second func model*******************/
- #define sec_func_paramid 1
- #define sec_func_paramname "secfuncmodel_integrate"
- /*-------------------------------------------------------*/
- /***********modbus conf*******************/
- #define rf_modbus_server_ip "127.0.0.1"
- #define rf_modbus_server_port 508
- //modbus 响应超时设置 1000000 微秒
- #define rf_modbus_server_response_timeout 1000000
- #define rf_modbus_server_response_timeout_setting_enable true
- /*-------------------------------------------------------*/
- /***********gtly cal*******************/
- #define m_PI acos(-1)
- #define MATH_PI 3.1415926
- #define input_welldata_yml_path "../gtaoid_data.yaml"
- #define gtly_cal_effectstroke_fun 1
- #define gtly_val_effect_hours 24
- #define gtly_val_to_rf_RTU_SD 2 //存回RTU时的小数有效数字位数
- /*-------------------------------------------------------*/
- /*class gtrunconf {
- };*/
- #endif //GTCVR_GTRUNCONF_H
|