Guest User

Untitled

a guest
Jul 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. --- a/trunk/firmware/algo/train_detect.c
  2. +++ b/trunk/firmware/algo/train_detect.c
  3. @@ -22,23 +22,23 @@ enum ANSWER train_detect(float* spec_ch1)
  4. enum ANSWER alsn_res;
  5. //enum ANSWER knock_res;
  6.  
  7. - if (train_detect_pulse_noise_detector(&Pulse_Noise_Detector_Struct, spec_ch1) == true || actual_state == INIT)
  8. - {
  9. +// if (train_detect_pulse_noise_detector(&Pulse_Noise_Detector_Struct, spec_ch1) == true || actual_state == INIT)
  10. +// {
  11. entropy_res = train_detect_entropy(spec_ch1); // <E8><ED><E8><F6><E8><E0><EB><E8><E7><E0><F6><E8><FF> <E8> <E4><E5><F2><E5><EA><E8><F0><EE><E2><E0><ED><E8><E5>
  12. <EF><EE> <FD><ED><F2><F0><EE><EF><E8><E8>
  13. - }
  14. - else
  15. - {
  16. -#ifdef DEBUG
  17. - int i;
  18. - for (i=0; i < BUF_SHIFT; i++)
  19. - {
  20. - float tmp = 0.F;
  21. - fwrite(&tmp, sizeof(float), 1, fout2);
  22. - fwrite(&tmp, sizeof(float), 1, fout2);
  23. - }
  24. -#endif
  25. - entropy_res = actual_state;
  26. - }
  27. +// }
  28. +// else
  29. +// {
  30. +//#ifdef DEBUG
  31. +// int i;
  32. +// for (i=0; i < BUF_SHIFT; i++)
  33. +// {
  34. +// float tmp = 0.F;
  35. +// fwrite(&tmp, sizeof(float), 1, fout2);
  36. +// fwrite(&tmp, sizeof(float), 1, fout2);
  37. +// }
  38. +//#endif
  39. +// entropy_res = actual_state;
  40. +// }
Add Comment
Please, Sign In to add comment