Pulse filter error

edited October 2016 in Android
Hi,
Getting error "Pulse cannot applied to (com.mbientlab.metwear.processor.Pulse.OutputMode)".
my code is for accelerometer
AsyncOperation<RouteManager> routeManagerResultAccel = accelModule.routeData().fromXAxis().
.process(new Average((byte) 16))
.process(new Pulse(Pulse.OutputMode.PEAK,16)
.stream(STREAM_KEY).commit();

Comments

  • See the constructor definition for the Pulse object.
  • Thanks Eric,
    at least i am not getting any error while executing, but i am not sure about the output data.
    modified code:
    AsyncOperation<RouteManager> routeManagerResultAccel = accelModule.routeData().fromXAxis().
    .process(new Average((byte) 16))
    .process(new Pulse(Pulse.OutputMode.PEAK,1,(byte)16))
    .stream(STREAM_KEY).commit();
  • what does the received data look like?
This discussion has been closed.