BCUDisp.c 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #include "BCUDisp.h"
  2. #include "rtwtypes.h"
  3. #include "zero_crossing_types.h"
  4. #include "BCU_types.h"
  5. real32_T damd_E_chrgEng;
  6. real32_T damd_E_disChrgEng;
  7. real32_T damd_E_regenEng;
  8. real32_T damd_E_totalChrgEng;
  9. real32_T damd_E_totalChrgEngEi;
  10. real32_T damd_E_totalChrgEngEo;
  11. real32_T damd_E_totalDisChrgEng;
  12. real32_T damd_E_totalDisChrgEngEi;
  13. real32_T damd_E_totalDisChrgEngEo;
  14. real32_T damd_E_totalRegenEng;
  15. real32_T damd_E_totalRegenEngEi;
  16. real32_T damd_E_totalRegenEngEo;
  17. real32_T damd_E_totalSatChrgEng;
  18. real32_T damd_E_totalSatChrgEngEi;
  19. real32_T damd_E_totalSatChrgEngEo;
  20. real32_T damd_E_totalVehChrgEng;
  21. real32_T damd_E_totalVehChrgEngEi;
  22. real32_T damd_E_totalVehChrgEngEo;
  23. uint16_T damd_Nr_totalChg;
  24. uint16_T damd_Nr_totalChgEi;
  25. uint16_T damd_Nr_totalChgEo;
  26. uint16_T damd_Nr_totalStaChrg;
  27. uint16_T damd_Nr_totalStaChrgEi;
  28. uint16_T damd_Nr_totalStaChrgEo;
  29. uint16_T damd_Nr_totalVehChrg;
  30. uint16_T damd_Nr_totalVehChrgEi;
  31. uint16_T damd_Nr_totalVehChrgEo;
  32. real32_T damd_Q_chrgCp;
  33. real32_T damd_Q_disChrgCp;
  34. real32_T damd_Q_regenCp;
  35. real32_T damd_Q_totalChrgCp;
  36. real32_T damd_Q_totalChrgCpEi;
  37. real32_T damd_Q_totalChrgCpEo;
  38. real32_T damd_Q_totalDisChrgCp;
  39. real32_T damd_Q_totalDisChrgCpEi;
  40. real32_T damd_Q_totalDisChrgCpEo;
  41. real32_T damd_Q_totalRegenCp;
  42. real32_T damd_Q_totalRegenCpEi;
  43. real32_T damd_Q_totalRegenCpEo;
  44. real32_T damd_Q_totalSatChrgCp;
  45. real32_T damd_Q_totalSatChrgCpEi;
  46. real32_T damd_Q_totalSatChrgCpEo;
  47. real32_T damd_Q_totalVehChrgCp;
  48. real32_T damd_Q_totalVehChrgCpEi;
  49. real32_T damd_Q_totalVehChrgCpEo;
  50. uint8_T damd_st_chgCnctObjEi;
  51. uint8_T damd_st_chgCnctObjEo;
  52. chrgSt dcmd_st_chrgSt_T2;
  53. chgCnctObj hvmd_st_chgCnctObj_T2;
  54. real32_T ihd_I_battCurr_T2;
  55. real32_T ihd_V_battU_T2;
  56. real32_T ihd_V_cellUAvrg;
  57. real32_T ihd_V_cellUMax;
  58. real32_T ihd_V_cellUMin;
  59. real32_T ihd_pct_socCor;
  60. uint8_T ihd_tm_dayEi;
  61. uint8_T ihd_tm_dayEo;
  62. uint8_T ihd_tm_hourEi;
  63. uint8_T ihd_tm_hourEo;
  64. uint8_T ihd_tm_minEi;
  65. uint8_T ihd_tm_minEo;
  66. uint8_T ihd_tm_monthEi;
  67. uint8_T ihd_tm_monthEo;
  68. uint16_T ihd_tm_parkTime;
  69. uint32_T ihd_tm_realTime;
  70. uint8_T ihd_tm_secEi;
  71. uint8_T ihd_tm_secEo;
  72. uint8_T ihd_tm_yearEi;
  73. uint8_T ihd_tm_yearEo;
  74. boolean_T ihv_flg_EESt[4];
  75. uint8_T rted_tm_day;
  76. uint8_T rted_tm_hour;
  77. uint8_T rted_tm_min;
  78. uint8_T rted_tm_month;
  79. uint8_T rted_tm_sec;
  80. uint8_T rted_tm_year;
  81. boolean_T rtev_flg_EESt[4];
  82. real32_T socd_Q_dMax;
  83. real32_T socd_Q_dMin;
  84. boolean_T socd_flg_EEsave;
  85. real32_T socd_pct_ahSoc;
  86. real32_T socd_pct_battSoc;
  87. real32_T socd_pct_battSocEi;
  88. real32_T socd_pct_battSocEo;
  89. real32_T socd_pct_bcuSoc;
  90. real32_T socd_pct_bcuSocEi;
  91. real32_T socd_pct_bcuSocEo;
  92. real32_T socd_pct_ekfSoc;
  93. real32_T sohd_pct_bcuSoh;