gtrunconf.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. //
  2. // Created by lloyd on 2020/9/28.
  3. //
  4. #include "math.h"
  5. #ifndef GTCVR_GTRUNCONF_H
  6. #define GTCVR_GTRUNCONF_H
  7. /******dgns core param**********/
  8. #define gtrunconf_rows 192;
  9. #define gtrunconf_cols 256;
  10. #define gtrunconf_svmmodel_load 2
  11. #define gtrunconf_cvcore_regnfunc 1
  12. // 周期诊断 延迟时间 单位: ms
  13. #define gtrunconf_interval_delaytime 3000
  14. #define gtrunconf_xml_basepath "../model.xml"
  15. #define gtrunconf_txt_basepath "../type.txt"
  16. #define SGTSTRUNITWIDTH 8
  17. #define gtPointsNumConditionlimit 50
  18. /*-----------------------------*/
  19. /******Gray cal param**********/
  20. #define densecard_point_num_max 2100
  21. #define cardgray_width 64
  22. #define cardgray_height 32
  23. #define cardgray_value_default 129
  24. #define cardgray_value_usage 1
  25. #define cardgray_characters_num 48
  26. //2x2 blocks cal
  27. #define cardgray_row_block_num 2
  28. //2x2 blocks cal
  29. #define cardgray_col_block_num 2
  30. // must be 2
  31. #define cardgray_nlgt_func_count 2
  32. //must be 6
  33. #define cardgray_block_cha_num 6
  34. /*-----------------------------*/
  35. /******cal standard gt**********/
  36. #define standard_gt_groups_max_num 7
  37. #define standard_gt_minest_semblance 0.95
  38. //标准功图持续出现7天以上才会认为有效
  39. #define standard_gt_effect_days 7
  40. /*-----------------------------*/
  41. /*** gt normalization param************/
  42. /* 256*192(0.05边缘区划分)→(6-250)(5-187)
  43. * 最低预留像素边缘空间4px
  44. */
  45. //256*192
  46. #define mapgt_MapX 256
  47. //256*192
  48. #define mapgt_MapY 192
  49. //256 0.05边缘区划分)→(6-250)
  50. #define mapgt_MinX 6
  51. //256 0.05边缘区划分)→(6-250)
  52. #define mapgt_MaxX 250
  53. //192 0.05边缘区划分)→(5-187)
  54. #define mapgt_MinY 5
  55. //192 0.05边缘区划分)→(5-187)
  56. #define mapgt_MaxY 187
  57. // 偏移量x
  58. #define mapgt_OffsetX 6
  59. // 偏移量y
  60. #define mapgt_OffsetY 5
  61. /*----------------------------*/
  62. /********************************/
  63. #define baseparam_l_fistdownturnpoint_default -1
  64. /*---------------------------*/
  65. /***********postgresql *******************/
  66. /*postgresql connector string*/
  67. #define postgresql_connector_string_libpqC "dbname=postgres user=postgres password=123456 hostaddr=127.0.0.1 port=5432"
  68. #define postgresql_aes_secretkey "DHEG"
  69. #define postgresql_field_encryptfunc "aes"
  70. /*-------------------------------------------------------*/
  71. /***********second func model*******************/
  72. #define sec_func_paramid 1
  73. #define sec_func_paramname "secfuncmodel_integrate"
  74. /*-------------------------------------------------------*/
  75. /***********modbus conf*******************/
  76. #define rf_modbus_server_ip "127.0.0.1"
  77. #define rf_modbus_server_port 508
  78. //modbus 响应超时设置 1000000 微秒
  79. #define rf_modbus_server_response_timeout 1000000
  80. #define rf_modbus_server_response_timeout_setting_enable true
  81. /*-------------------------------------------------------*/
  82. /***********gtly cal*******************/
  83. #define m_PI acos(-1)
  84. #define MATH_PI 3.1415926
  85. #define input_welldata_yml_path "../gtaoid_data.yaml"
  86. #define gtly_cal_effectstroke_fun 1
  87. #define gtly_val_effect_hours 24
  88. #define gtly_val_to_rf_RTU_SD 2 //存回RTU时的小数有效数字位数
  89. /*-------------------------------------------------------*/
  90. /*class gtrunconf {
  91. };*/
  92. #endif //GTCVR_GTRUNCONF_H