BCUCal.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #include "rtwtypes.h"
  2. #define cmnc_num_cellUNumMax 28
  3. #define cmnc_num_modTNumMax 8
  4. extern const uint16_T blcc_R_esr; /* 均衡电阻 */
  5. extern const uint16_T blcc_T_close; /* 均衡暂停温度; */
  6. extern const uint16_T blcc_T_open; /* 均衡暂停恢复温度; */
  7. extern const uint16_T blcc_V_low; /* 均衡开启电压阈值 */
  8. extern const uint16_T cmnc_Q_ratedCp; /* 电池容量; */
  9. extern uint16_T cmnc_num_cellUNum; /* 电压采样点实际个数; */
  10. extern uint16_T cmnc_num_modTNum; /* 温度采样点实际个数; */
  11. extern const uint16_T cmnc_tm_parkTime; /* 静置时间阈值; */
  12. extern const uint16_T cmnm_F_polar[13]; /* 电池放电参数的C数组; */
  13. extern const uint16_T cmnm_R_ohm[13]; /* 电池放电参数的Ro数组; */
  14. extern const uint16_T cmnm_R_polar[13]; /* 电池放电参数的Rp数组; */
  15. extern const uint16_T cmnm_V_ocv[13]; /* 电池放电参数的OCV数组; */
  16. extern const uint16_T cmnm_pct_soc[13]; /* 电池放电参数的SOC数组; */
  17. extern const uint16_T cmnc_V_chrgFul; /* 充满电的截至电压; */
  18. extern const uint16_T cmnm_R_voloffset[28]; /*电压铜牌阻值补偿,单位moh*/
  19. extern const uint16_T cmnc_V_disChrgLim;
  20. extern const int16_T sfmc_I_chrgCurrOverThr; /* 充电电流阈值 */
  21. extern const int16_T sfmc_I_disChrgCurrOverThr; /* 放电电流阈值 */
  22. extern const int16_T sfmc_T_ACPlugTOverThrFlt1; /* 慢充插头温度过高1级故障诊断阈值 */
  23. extern const int16_T sfmc_T_ACPlugTOverThrFlt2; /* 慢充插头温度过高2级故障诊断阈值 */
  24. extern const int16_T sfmc_T_ACPlugTOverThrRec1; /* 慢充插头温度过高1级故障恢复阈值 */
  25. extern const int16_T sfmc_T_ACPlugTOverThrRec2; /* 慢充插头温度过高2级故障恢复阈值 */
  26. extern const int16_T sfmc_T_DCPlugTOverThrFlt1; /* 快充插头温度过高1级故障诊断阈值 */
  27. extern const int16_T sfmc_T_DCPlugTOverThrFlt2; /* 快充插头温度过高2级故障诊断阈值 */
  28. extern const int16_T sfmc_T_DCPlugTOverThrRec1; /* 快充插头温度过高1级故障恢复阈值 */
  29. extern const int16_T sfmc_T_DCPlugTOverThrRec2; /* 快充插头温度过高2级故障恢复阈值 */
  30. extern const uint16_T sfmc_T_chrgModTLowThrFlt1; /* 充电模组温度过低1级故障诊断阈值 */
  31. extern const uint16_T sfmc_T_chrgModTLowThrFlt2; /* 充电模组温度过低2级故障诊断阈值 */
  32. extern const uint16_T sfmc_T_chrgModTLowThrRec1; /* 充电模组温度过低1级故障恢复阈值 */
  33. extern const uint16_T sfmc_T_chrgModTLowThrRec2; /* 充电模组温度过低2级故障恢复阈值 */
  34. extern const uint16_T sfmc_T_chrgModTOverThrFlt1; /* 充电模组温度过高1级故障诊断阈值 */
  35. extern const uint16_T sfmc_T_chrgModTOverThrFlt2; /* 充电模组温度过高2级故障诊断阈值 */
  36. extern const uint16_T sfmc_T_chrgModTOverThrRec1; /* 充电模组温度过高1级故障恢复阈值 */
  37. extern const uint16_T sfmc_T_chrgModTOverThrRec2; /* 充电模组温度过高2级故障恢复阈值 */
  38. extern const int16_T sfmc_T_chrgMosTOverThrFlt1; /* 充电Mos温度过高1级故障诊断阈值 */
  39. extern const int16_T sfmc_T_chrgMosTOverThrFlt2; /* 充电Mos温度过高2级故障诊断阈值 */
  40. extern const int16_T sfmc_T_chrgMosTOverThrRec1; /* 充电Mos温度过高1级故障恢复阈值 */
  41. extern const int16_T sfmc_T_chrgMosTOverThrRec2; /* 充电Mos温度过高2级故障恢复阈值 */
  42. extern const uint16_T sfmc_T_disChrgModTLowThrFlt1; /* 放电模组温度过低1级故障诊断阈值 */
  43. extern const uint16_T sfmc_T_disChrgModTLowThrFlt2; /* 放电模组温度过低2级故障诊断阈值 */
  44. extern const uint16_T sfmc_T_disChrgModTLowThrRec1; /* 放电模组温度过低1级故障恢复阈值 */
  45. extern const uint16_T sfmc_T_disChrgModTLowThrRec2; /* 放电模组温度过低2级故障恢复阈值 */
  46. extern const uint16_T sfmc_T_disChrgModTOverThrFlt1; /* 放电模组温度过高1级故障诊断阈值 */
  47. extern const uint16_T sfmc_T_disChrgModTOverThrFlt2; /* 放电模组温度过高2级故障诊断阈值 */
  48. extern const uint16_T sfmc_T_disChrgModTOverThrRec1; /* 放电模组温度过高1级故障恢复阈值 */
  49. extern const uint16_T sfmc_T_disChrgModTOverThrRec2; /* 放电模组温度过高2级故障恢复阈值 */
  50. extern const int16_T sfmc_T_heatPanTOverThrFlt1; /* 加热板温度过高1级故障诊断阈值 */
  51. extern const int16_T sfmc_T_heatPanTOverThrFlt2; /* 加热板温度过高2级故障诊断阈值 */
  52. extern const int16_T sfmc_T_heatPanTOverThrRec1; /* 加热板温度过高1级故障恢复阈值 */
  53. extern const int16_T sfmc_T_heatPanTOverThrRec2; /* 加热板温度过高2级故障恢复阈值 */
  54. extern const int16_T sfmc_T_modTDiffThrFlt1; /* 模组温差过大1级故障诊断阈值 */
  55. extern const int16_T sfmc_T_modTDiffThrFlt2; /* 模组温差过大2级故障诊断阈值 */
  56. extern const int16_T sfmc_T_modTDiffThrRec1; /* 模组温差过大1级故障恢复阈值 */
  57. extern const int16_T sfmc_T_modTDiffThrRec2; /* 模组温差过大2级故障恢复阈值 */
  58. extern const uint16_T sfmc_V_battULowThrFlt1; /* 总压欠压1级故障诊断阈值 */
  59. extern const uint16_T sfmc_V_battULowThrFlt2; /* 总压欠压2级故障诊断阈值 */
  60. extern const uint16_T sfmc_V_battULowThrRec1; /* 总压欠压1级故障恢复阈值 */
  61. extern const uint16_T sfmc_V_battULowThrRec2; /* 总压欠压2级故障恢复阈值 */
  62. extern const uint16_T sfmc_V_battUOverThrFlt1; /* 总压过压1级故障诊断阈值 */
  63. extern const uint16_T sfmc_V_battUOverThrFlt2; /* 总压过压2级故障诊断阈值 */
  64. extern const uint16_T sfmc_V_battUOverThrRec1; /* 总压过压1级故障恢复阈值 */
  65. extern const uint16_T sfmc_V_battUOverThrRec2; /* 总压过压2级故障恢复阈值 */
  66. extern const uint16_T sfmc_V_cellULowThrFlt1; /* 单体电压欠压1级故障诊断阈值 */
  67. extern const uint16_T sfmc_V_cellULowThrFlt2; /* 单体电压欠压2级故障诊断阈值 */
  68. extern const uint16_T sfmc_V_cellULowThrRec1; /* 单体电压欠压1级故障恢复阈值 */
  69. extern const uint16_T sfmc_V_cellULowThrRec2; /* 单体电压欠压2级故障恢复阈值 */
  70. extern const uint16_T sfmc_V_cellUOverThrFlt1; /* 单体电压过压1级故障诊断阈值 */
  71. extern const uint16_T sfmc_V_cellUOverThrFlt2; /* 单体电压过压2级故障诊断阈值 */
  72. extern const uint16_T sfmc_V_cellUOverThrRec1; /* 单体电压过压1级故障恢复阈值 */
  73. extern const uint16_T sfmc_V_cellUOverThrRec2; /* 单体电压过压2级故障恢复阈值 */
  74. extern const uint16_T sfmc_flg_cellUDiffThrFlt1; /* 压差过大1级故障诊断阈值 */
  75. extern const uint16_T sfmc_flg_cellUDiffThrFlt2; /* 压差过大2级故障诊断阈值 */
  76. extern const uint16_T sfmc_flg_cellUDiffThrRec1; /* 压差过大1级故障恢复阈值 */
  77. extern const uint16_T sfmc_flg_cellUDiffThrRec2; /* 压差过大2级故障恢复阈值 */
  78. extern const uint16_T sfmc_T_disChrgMosTOverThrFlt1;
  79. extern const uint16_T sfmc_T_disChrgMosTOverThrRec1;
  80. extern const uint16_T sfmc_T_disChrgMosTOverThrFlt2;
  81. extern const uint16_T sfmc_T_disChrgMosTOverThrRec2;
  82. extern const uint16_T sohc_Q_countThr; /* */
  83. extern const uint16_T sohc_Q_updateDeltThr; /* */
  84. extern const uint16_T sohc_pct_low;
  85. extern const uint16_T sohc_pct_up;
  86. extern const int16_T sopc_I_currUp;
  87. extern const int16_T sopc_I_currLow;
  88. extern const uint16_T socc_pct_battSocLow; /* SOC下限值; */
  89. extern const uint16_T socc_pct_battSocUp; /* SOC上限值; */
  90. extern const int16_T socm_I_chrgCor[4]; /* 充电CCV对应的电流数据; */
  91. extern const int16_T socm_I_disChrgCor[3]; /* 放电CCV对应的电流数据; */
  92. extern const uint16_T socm_V_chrgCor[4]; /* 充电CCV对应的电压; */
  93. extern const uint16_T socm_V_disChrgCor[3]; /* 放电CCV对应的电压; */
  94. extern const uint16_T socc_pct_chrgCor;
  95. extern const uint16_T socc_pct_disChrgCor;
  96. extern const uint16_T cmm_T_ChrgCurr[3];
  97. extern const uint16_T cmm_V_ChrgCurr[6];
  98. extern const uint16_T cmm_I_ChrgCurr[18];
  99. extern const uint16_T tmsc_T_openThr; /* 热管理开启温度; */
  100. extern const uint16_T tmsc_T_closeMinThr; /* 热管理关闭温度(最低模组); */
  101. extern const uint16_T tmsc_T_closeMaxThr; /* 热管理开启温度(最高模组); */
  102. extern const uint16_T tmsc_pct_socOpen;/* 热管理开启SOC阈值(非充电)*/
  103. extern const uint16_T tmsc_pct_socClos;/* 热管理推出SOC阈值(非充电)*/