SensorFusion and data processing

Hi

I'm considering getting a sensor fusion capable board (or boards) but would like to know the answer to this first. Assuming I am using NDoF mode and wanting to stream linear acceleration, is it possible to use the packer and the accounter (and indeed the other route components) in the route? E.g., something like:

sensorFusion.linearAcceleration.addRouteAsync(new RouteBuilder() {
@Override
public void configure(RouteComponent source) {
source.pack((byte) 2).account().stream(new Subscriber() {
@Override
public void apply(Data data, Object... env) {
Log.i("test", "Accel = " + data.value(Acceleration.class) + " time = " + data.timestamp().getTimeInMillis());
}
});
}
});

The closest discussion I could find was this https://mbientlab.com/community/discussion/2421/addrouteasync-fails-when-adding-account-to-routecomponent/p1 but that relates to quaternion, which perhaps requires more space in the packet?

Thanks

Torben

Comments

  • Route components that modify data are not supported. Accounter will work with linear acc but not packer.

This discussion has been closed.