Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/trunk/firmware/algo/train_detect.c
- +++ b/trunk/firmware/algo/train_detect.c
- @@ -22,23 +22,23 @@ enum ANSWER train_detect(float* spec_ch1)
- enum ANSWER alsn_res;
- //enum ANSWER knock_res;
- - if (train_detect_pulse_noise_detector(&Pulse_Noise_Detector_Struct, spec_ch1) == true || actual_state == INIT)
- - {
- +// if (train_detect_pulse_noise_detector(&Pulse_Noise_Detector_Struct, spec_ch1) == true || actual_state == INIT)
- +// {
- 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>
- <EF><EE> <FD><ED><F2><F0><EE><EF><E8><E8>
- - }
- - else
- - {
- -#ifdef DEBUG
- - int i;
- - for (i=0; i < BUF_SHIFT; i++)
- - {
- - float tmp = 0.F;
- - fwrite(&tmp, sizeof(float), 1, fout2);
- - fwrite(&tmp, sizeof(float), 1, fout2);
- - }
- -#endif
- - entropy_res = actual_state;
- - }
- +// }
- +// else
- +// {
- +//#ifdef DEBUG
- +// int i;
- +// for (i=0; i < BUF_SHIFT; i++)
- +// {
- +// float tmp = 0.F;
- +// fwrite(&tmp, sizeof(float), 1, fout2);
- +// fwrite(&tmp, sizeof(float), 1, fout2);
- +// }
- +//#endif
- +// entropy_res = actual_state;
- +// }
Add Comment
Please, Sign In to add comment