Changed way to detect maximums in signal
We look for points with value higher than the next PERIOD/4 part of the signal, instead of looking for points with value higher than a fixed value.
We look for points with value higher than the next PERIOD/4 part of the signal, instead of looking for points with value higher than a fixed value.