BCUCal.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #include "BCUCal.h"
  2. #include "rtwtypes.h"
  3. #include "zero_crossing_types.h"
  4. #include "BCU_types.h"
  5. const real32_T cmnc_Q_ratedCp = 228.0F;
  6. const real32_T cmnc_V_chrgLim = 3.65F;
  7. const uint16_T cmnc_tm_parkTime = 1800U;
  8. const real32_T cmnm_V_ocv[13] = { 3.018F, 3.2036F, 3.2097F, 3.2576F, 3.2883F,
  9. 3.2907F, 3.2925F, 3.3151F, 3.329F, 3.3291F, 3.3302F, 3.3307F, 3.365F } ;
  10. const real32_T cmnm_ohm_Ro[13] = { 0.306009889F, 0.293365866F, 0.294491231F,
  11. 0.290013522F, 0.291111976F, 0.290009171F, 0.28747189F, 0.284085929F,
  12. 0.283806592F, 0.27988553F, 0.279870868F, 0.278482974F, 0.276800454F } ;
  13. const real32_T cmnm_ohm_polar[13] = { 1.43450201F, 0.800092101F, 0.608645558F,
  14. 0.56587553F, 0.52925235F, 0.52018106F, 0.478027344F, 0.592651367F,
  15. 0.510180533F, 0.489099532F, 0.491442382F, 0.431143075F, 1.02923763F } ;
  16. const real32_T cmnm_pct_soc[13] = { 0.0F, 5.0F, 10.0F, 20.0F, 30.0F, 40.0F,
  17. 50.0F, 60.0F, 70.0F, 80.0F, 90.0F, 95.0F, 100.0F } ;
  18. const real32_T cmnm_tm_polar[13] = { 24.9392738F, 18.0995693F, 15.3243456F,
  19. 17.183382F, 18.5551472F, 20.927927F, 20.1533337F, 24.603363F, 21.9573078F,
  20. 23.9220982F, 24.5421619F, 22.1783905F, 38.8431358F } ;
  21. const real32_T damc_tm_step = 0.1F;
  22. const uint16_T socc_Nr_judge = 20U;
  23. const real32_T socc_pct_battSocLow = 0.0F;
  24. const real32_T socc_pct_battSocUp = 100.0F;
  25. const real32_T socc_pct_chrgCCV = 97.0F;
  26. const real32_T socc_pct_disChrgCCV = 5.0F;
  27. const real32_T socc_pct_fitRate = 0.1F;
  28. const real32_T socc_tm_step = 0.1F;
  29. const real32_T socm_I_chrgCor[2] = { 76.0F, 250.0F } ;
  30. const real32_T socm_I_disChrgCor[2] = { -200.0F, -100.0F } ;
  31. const real32_T socm_V_chrgCor[2] = { 3.47F, 3.573F } ;
  32. const real32_T socm_V_disChrgCor[2] = { 2.98F, 3.02F } ;
  33. const real32_T socm_V_emptyV[2] = { 2.5F, 2.5F } ;