Package edu.purdue.wind

Examples of edu.purdue.wind.CrackDetector


      for (int i = 0; i < nSamples; i++) {
    data[c][i] = (double)samples[i];
      }
  }

  CrackDetector detector = new CrackDetector(wave.sampleRate(), nSamples);
  Turbine t = new Turbine();

  double probingFreq = Double.parseDouble(args[1]);
  detector.processAudio(t.blade(0), data[0], probingFreq);
  detector.processAudio(t.blade(1), data[1], probingFreq);

  if (detector.detect(t.blade(0), t.blade(1))) {
      System.out.println("Crack detected");
  } else {
      System.out.println("No cracks");
  }
    }
View Full Code Here


     */
    private CrackDetectorRTSJ(Turbine turbine) {
  AudioCodecRTSJ codec = AudioCodecRTSJ.instance();

  this.turbine = turbine;
  detector = new CrackDetector(codec.sampleRate(), Configuration.MAX_SAMPLES);

  // FIXME: Real reset handler
  Watchdog.WatchdogResetHandler wrh = new Watchdog.WatchdogResetHandler() {
    public void reset() {
        Log.instance().log(Log.LogLevel.ERROR, "CrackDetectorRTSJ", "Resetting");
View Full Code Here

TOP

Related Classes of edu.purdue.wind.CrackDetector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.