SensorFusion and data processing


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() {
public void configure(RouteComponent source) {
source.pack((byte) 2).account().stream(new Subscriber() {
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 but that relates to quaternion, which perhaps requires more space in the packet?




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

This discussion has been closed.